Could someone help me please? I have a flash and php based mail form that needs to have the fields verified. So when a user does not insert info in the text fields, an error clip will play. The form works fine without the verification of fields, but I want to prevent from receiving blank emails.
The form is created in 2 parts or tutorials since I’m trying to add field verification or error
message. Here are the links of the tutorials. http://www.gotoandlearn.com/playid=50 and the next link is for the field verification. http://www.macromediahelp.com/flash/php_flash_contact_form//
I’m using CS3 with AS1 and 2. Here is my original AS without the verification.
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
submit2.onRelease = function() {
senderLoad.name2 = name2.text;
senderLoad.email2 = email2.text;
senderLoad.address2 = address2.text;
senderLoad.phone2 = phone2.text;
senderLoad.sendAndLoad("http://www.agdeal.com/flash/sendmike2.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOK) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
};
Any help is MUCH Appreciated Thanks. I would upload the form document but it seems to be too large for attachments.