quote:
Originally posted by: myIP
“Even if I leave both the Name and Message field empty it will still send the message and not (as it should) go and play the error message...”
Well that makes sense IF it cant find the form movieclip. If it cant find the movieclip, regardless if you have a value in the textfield or not, it will return ‘undefined’. So in your example it will look like this;
on(release){
if ((undefined<1) or (undefined <1)) {
_parent.error_message.gotoAndPlay("s1");
}
else{
_parent.form.loadVariables("email.php", "POST");
}
}
Since ‘undefined’ is not a number, it will execute the code in the else statement.
North America
Europe, Middle East and Africa
Asia Pacific