Formmail redirects me to a blank page..

Hi there,
I use a form in my flash movie which points to formmail.pl
Although the variable " $no_content " is set to 1, there is still a new page being
generated after you hit submit. Please help..
klokloAsked:
Who is Participating?
 
CyanBlueConnect With a Mentor Commented:
Like I said, try using sendAndLoad() function instead of the send() function... (Check my code one more time...) ;)

CyanBlue
0
 
CyanBlueCommented:
Howdy...

You might want to use LoadVars().sendAndLoad() function instead of whatever function you are using(getURL() function perhaps) to ensure that you are not opening a new window browser from the Flash Player...

send_lv = new LoadVars();
send_lv.onLoad = function () {};
send_lv.argToSend1 = "some data";
send_lv.argToSend2 = "some data";
send_lv.sendAndLoad("formmail.pl", send_lv, "POST");

CyanBlue
0
 
klokloAuthor Commented:
THhanks Cyanble,
I m  using lv already, not geturl.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
CyanBlueCommented:
How about posting your actual code so that I know what you are doing???  ;)

CyanBlue
0
 
klokloAuthor Commented:
thats it!  Its attached on a "send" button.

var sender_lv = new LoadVars();
      sender_lv.subject = "WWW contact";
      sender_lv.comments = this.message_txt.text;
      sender_lv.required = comments;
      sender_lv.send("http://www.picture.gr/cgi-bin/FormMail.pl", "POST");
      message_txt.text = "Thanks!";
0
 
klokloAuthor Commented:
THANKS! it worked
(Can you please  have a look at my new question too.? )

If I get it right, I had to load the variables from Formmail.pl into swf,. Yes?
0
 
CyanBlueCommented:
Um...  I don't understand that question...  
Do you have another topic that explains the problem???  What's the URL to that topic???

CyanBlue
0
 
klokloAuthor Commented:
The last question was about the solution you gave me

I also have a new topic here
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_21818402.html

0
All Courses

From novice to tech pro — start learning today.