# AS2: Problem with contact form "clear" and "post" buttons

**URL:** <https://forum.kirupa.com/t/as2-problem-with-contact-form-clear-and-post-buttons/308451>\
**Category:** flash\
**Created:** [April 23, 2010, 6:29am UTC](https://forum.kirupa.com/t/as2-problem-with-contact-form-clear-and-post-buttons/308451 "2010-04-23T06:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zjakerum](https://avatars.discourse-cdn.com/v4/letter/z/e9bcb4/32.png) [@zjakerum](https://forum.kirupa.com/u/zjakerum)\
**Post date:** [April 23, 2010, 6:29am UTC](https://forum.kirupa.com/t/as2-problem-with-contact-form-clear-and-post-buttons/308451/1 "2010-04-23T06:29:42Z")

</div>

I have a contact form that people should be able to fill out and send my client an email. However, after editing some of the site, the buttons that used to work no longer do. I’m not sure the problem. I can send the file if you would like.

the clear button script:  
on (rollOver) {this.gotoAndPlay(2)}  
on (rollOut) {this.gotoAndPlay(9)}  
on (release) {  
\_parent.a1.text=’’  
\_parent.a2.text=’’  
\_parent.a3.text=’’  
\_parent.a4.text=’’  
\_parent.a5.text=’’  
}

the submit button script:  
on (rollOver) {this.gotoAndPlay(2);}  
on (rollOut) {this.gotoAndPlay(9);}  
on (release) {  
if (a1 eq “” or a3 eq “” or a5 eq “”) {  
stop();  
} else {  
loadVariablesNum(“form.php”, 0, “POST”);  
gotoAndStop(2);  
}  
}

Many thanks!
