|
-
Resolved: Need code revision from Flash 6 to 8
Resolved.
Solution? Remove caps from name and message field. Also added a "z" at the end of each field reference for clarity sake.
As a side note, thanks for making me learn about Levels.. still not completely understanding the initializing of variables, however. That's next on my agenda to learn.
Cheers!
________________________________________________
Edited working code:
on (release) {
if (!namez.length) {
message = "Please enter your name.";
}
else if (!Emailz.length || Emailz.indexOf("@") == -1 || Emailz.indexOf(".") == -1) {
message = "Please enter a valid email address";
}
else if (!commentsz.length) {
message = "Please enter your message";
}
else {
loadVariablesNum("MailPHP.php", 0, "POST");
gotoAndPlay(120);
}
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|