This is a discussion on "POST variables lost in the ether" within the Flash & Multimedia Forum section. This forum, and the thread "POST variables lost in the ether are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
POST variables lost in the ether
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
POST variables lost in the ether
Got a problem sending mail in Flash MX - got all of the input text fields setup ok to pass values over to a mailsend script.
On the form send button: <font color="navy">on (press){ loadVariables("sendMail.asp",_root,"POST"); gotoAndPlay(210); }</font id="navy"> This will supposedly pass the variables over to the script.. and then play the confirmation sent frame unfortunately it doesn't pass the vars. I've tried moving the loadVariables code to the timeline frame instead of the button, that doesn't work either! Also tried switching in loadVariablesNum instead. Email is being sent but with blank variables so they're definitely being lost somewhere down the line. There's clearly something simple that I'm missing here.. any ideas? |
|
|
|
#2
|
|||
|
|||
|
I assume that you have given each textfield/form item a var name, in the appropriate property field?
|
|
#3
|
|||
|
|||
|
Hiya Sirkent
Yep, the form value textfield items all have a var name set in their properties but i'm wondering if some like "title" are causing conflicts elsewhere. I've emailed you the MX source files, let me know what you think. Some of the source you may well recognise |
|
#4
|
|||
|
|||
|
I don't know why, but I can't open the FLA you've sent me. It doesn't throw an error, it just does nothing when I open it from without the program or execute the file...
maybe you protected it or something?! *very* confused!! |
|
#5
|
|||
|
|||
|
Ok, I've got your new files, which both open...so I'm probably more confused as to why it didn't work before (!).
Anyway, the problem is simple. The code that is sending needs to be in the same movieclip as the fields. At the moment your button is on the stage, but all the textfields are in a seperate movieclip. Try putting the send button inside the movieclip with all the form elements and see how that does. |
|
#6
|
|||
|
|||
|
I've got no idea why they didn't open before, coulda been incomplete from a bad save
Doh, ok so moved the submission 'send' button to the form page and tried that. Problem now is that it isn't submitting the form or contacting the mail script properly (remains static) and doesn't load in the confirmation sent frame either. |
|
#7
|
|||
|
|||
|
Ignore the above - emails started bombarding my inbox now, looks like that has indeed worked.. knew it'd be something rather straightforward
Thanks again 4 the help! Still not loading the confirmation frame though but is sending mail. |
![]() |
| Tags |
| post, variables, lost, ether |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing variables values using POST | sudhakararaog | Web Page Design | 2 | Mar 18th, 2008 09:12 |
| Help Plz!Lost! | OutCell | Other Programming Languages | 4 | Sep 3rd, 2005 02:04 |
| Session variables lost when http goes to https. Add to link? | Andy K | Classic ASP | 3 | Jul 19th, 2005 15:20 |
| passing post variables | benbacardi | PHP Forum | 5 | Jul 5th, 2005 22:13 |
| I'm lost | alaskamom | Web Page Design | 1 | May 25th, 2005 16:45 |