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 submit script not working correctly

Status
Not open for further replies.

onressy

Programmer
Mar 7, 2006
421
0
0
CA
good day everyone!

I have a form validation script that does validate the fields but does not for to the "thank" frame after the validation.

any suggestions, thanks

Code:
on (press) {
if (!name.length) {
		tellTarget ("n") {
			gotoAndPlay(1);
		}
} else if (!email.length) {
		tellTarget ("e") {
			gotoAndPlay(1);
		}
} else if (!company.length) {
		tellTarget ("c") {
			gotoAndPlay(1);
		}
} else if (!phone.length) {
		tellTarget ("p") {
			gotoAndPlay(1);
		}
} else if (!comments.length) {
		tellTarget ("m") {
			gotoAndPlay(1);
		}
} else {
		loadVariablesNum("form.asp", 0, "POST");
		gotoAndStop("thank"); 
	}
}
 
That is very old syntax. What version of Flash are you using? tellTarget was deprecated with Flash 5.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top