Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form redirect not working

Status
Not open for further replies.

askari

Technical User
Oct 29, 2001
44
0
0
AU
Hi all,
Im using Flash to send form data to FormMail.pl. Here are the variables Ive used..

redirect = "recipient = "me@myurl.com";
subject = "Message from website";

Everything is working fine except that the page doesn't redirect.
I know the FormMail.pl is working as I have set up an html form and it redirects correctly. Any ideas why the Flash form isn't working?
Thanks!
 
oops! Just realised that I put in an extra semi colon... That is not the cause of the problem as it's only in the above post... not my flash script
 
here it is

on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
} else if (!name.length) {
EmailStatus = "Please enter your name";
} else if (!Querie.length) {
EmailStatus = "Please enter your querie";
} else {
loadVariablesNum("cgi_bin/FormMail.pl", "", "POST");
EmailStatus = "sending message";
}
}
 
Try this instead of loadVariablesNum:

loadVariables("cgi_bin/FormMail.pl", "", "POST");

or specify a level to send the variables from.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top