all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

Mail a form in Flash


Mail a form in Flash Archimedess
1/1/2005 9:52:05 PM
flash actionscript:
I made a form that contains text fields, these textfields are QTY1 (quantity)
Price1 Total 1. I named them QTY1, QTY2 till QTY60
also for Price and Total. At the end I made a Total.

I would like to add a submit. If someone choose to have QTY1 3x QTY 16 2x, to
receive an email with these choosen values.

Can someone please help me with this issue?
Kind regards.
Re: Mail a form in Flash abeall
1/2/2005 4:45:40 AM
So there is no submit button at all yet? The actual mailing will need to be
handled outside of Flash, with a server-side scripting language, such as PHP.
Assuming all textfields are name 'QTY1','QTY2',ect. sender = new LoadVars();
for(i=1 ; i<=60 ; i++){//get all 60 textfields sender['QTY'+i] =
pathToTextfield['QTY'+i].text; sender['price'+i] =
pathToTextfield['price'+i].text; sender['total'+i] =
pathToTextfield['total'+i].text; } sender.total = pathToTotal.total;
sender.send('mailer.php')
AddThis Social Bookmark Button