Question
contact form send without all fields entered
I have a contact form set up with 5 fields and it can only be
sent if all 5 fields are filled in. Not all my clients want to
enter a phone number or wedding date, so I need to know how to
change the action script so that it will still send if only 2 or 3
of the text fields have been entered. I think the following is the
action script I need to edit -- I just don't know how;
_submit.onRelease = function(){
if (txt1.text == txt1.startText ||
txt2.text == txt2.startText ||
txt3.text == txt3.startText ||
txt4.text == txt4.startText ||
txt5.text == txt5.startText) {
clearFields();
gotoAndStop(3);
} else {
_this.loadVariables("email.php", "POST");
clearFields();
gotoAndStop(2);
}
}
Thank you for any help you can send.
Susan

_submit.onRelease = function(){
if (txt1.text == txt1.startText ||
txt2.text == txt2.startText ||
txt3.text == txt3.startText ||
txt4.text == txt4.startText ||
txt5.text == txt5.startText) {
clearFields();
gotoAndStop(3);
} else {
_this.loadVariables("email.php", "POST");
clearFields();
gotoAndStop(2);
}
}
Thank you for any help you can send.
Susan