Can't erase once I hit submit

Hi everyone,
This is my first post… kind of a silly question I guess, still gives me problems…

I’m Trying to make a very simple E mail form using textinput boxes and sending variables to php.
Thing is that my erase button stops functioning once I hit the Submit button. Why is that??
here are the scripts for Submit and Erase:

Submit script:
on (release) {
name = _parent.mailer.name.text;
company = _parent.mailer.company.text;
email = _parent.mailer.email.text;
telephone = _parent.mailer.telephone.text;
comments = _parent.mailer.comments.text;
// Check variable data
if (name eq “”) {
_parent.mailer.gb_status.text = “Required: Name”;
} else if (email eq “”) {
_parent.mailer.gb_status.text = “Required: e-mail Address”;
} else if (telephone eq “”) {
_parent.mailer.gb_status.text = “Required: Telephone number”;
} else if (comments eq “”) {
_parent.mailer.gb_status.text = “Required: Message”;
} else {
_parent.mailer.gb_status.text = “Thank you for your email…”;
_parent.mailer.name.text = “”;
_parent.mailer.company.text = “”;
_parent.mailer.email.text = “”;
_parent.mailer.telephone.text = “”;
_parent.mailer.comments.text = “”;
}
loadVariablesNum(“MailPHP.php”, “0”, “POST”);
}

Erase goes like this:
on(release){
_parent.mailer.name.text = “”;
_parent.mailer.company.text = “”;
_parent.mailer.email.text = “”;
_parent.mailer.telephone.text = “”;
_parent.mailer.comments.text = “”;
_parent.mailer.gb_status.text = “”;
}

Can anyone help? :huh:

In flash, make a reset button, and put this in the actions for the reset button.

on (release) {
name = “”;
subject="";
message="";
email="";
}


P.S. Dont put the lines in! :slight_smile:
Explanation:

name is the “var” that you gave any given text field.

Now Finally, I HAVE HELPED OTHERS…I Wish someone could help me put a preloader on JPEG Images I am calling from an xml sheet! link here