# Can't erase once I hit submit

**URL:** <https://forum.kirupa.com/t/cant-erase-once-i-hit-submit/114851>\
**Category:** Uncategorized\
**Created:** [July 2, 2004, 10:24am UTC](https://forum.kirupa.com/t/cant-erase-once-i-hit-submit/114851 "2004-07-02T10:24:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Algreco](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Algreco](https://forum.kirupa.com/u/Algreco)\
**Post date:** [July 2, 2004, 10:24am UTC](https://forum.kirupa.com/t/cant-erase-once-i-hit-submit/114851/1 "2004-07-02T10:24:12Z")

</div>

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:
