Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » sendAndLoad problem


sendAndLoad problem

Reply
  #1 (permalink)  
Old 02-11-08, 07:26 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
sendAndLoad problem

I use this code to send var to a php file..
but somehow it doesn't work correct. The var email isn't
used in my script. is there something I do wrong in my AS?..

ActionScript Code:
  1. lvOut = new LoadVars();
  2.            
  3. lvOutOut.email = txt.text;
  4. lvOutOut.sendAndLoad("http://www.mysite.nl/newsletter/form.php?form=1""POST");


_j

Last edited by UnrealEd; 02-14-08 at 03:51 AM.
Reply With Quote
  #2 (permalink)  
Old 02-14-08, 03:55 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
can you post the php code you're using to check and send the email?

Also: you create a variable named lvOut, which is a LoadVars object, but then you use a variable named lvOutOut, which isn't even defined. try using this code:
ActionScript Code:
  1. var lvOut:LoadVars = new LoadVars ();
  2.  
  3. lvOut.email = txt.text;
  4. lvOut.sendAndLoad ("http://www.mysite.nl/newsletter/form.php?form=1", "POST");
  5.  
  6. lvOut.onLoad = function (success:Boolean) {
  7.   // process the returned data
  8. }
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help website problem! iangarrinud CSS 1 01-03-08 01:48 PM
login, roles problem dbrook007 ASP.NET 10 11-10-06 03:42 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM


All times are GMT -5. The time now is 06:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.