POST variables lost in the ether

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Apr 6th, 2004, 16:31
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Apr 6th, 2004, 16:53
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I assume that you have given each textfield/form item a var name, in the appropriate property field?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Apr 6th, 2004, 17:05
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Apr 6th, 2004, 17:51
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Apr 7th, 2004, 11:12
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Apr 7th, 2004, 11:41
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Apr 7th, 2004, 11:43
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
post, variables, lost, ether

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variables values using POST sudhakararaog Web Page Design 2 Mar 18th, 2008 08: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


All times are GMT. The time now is 03:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42