# Form not communicating with ASP

**URL:** https://forum.kirupa.com/t/form-not-communicating-with-asp/128253
**Category:** Uncategorized
**Created:** [November 10, 2004, 8:51pm UTC](https://forum.kirupa.com/t/form-not-communicating-with-asp/128253 "2004-11-10T20:51:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![glowworm](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@glowworm](https://forum.kirupa.com/u/glowworm)
#### Post date: [November 10, 2004, 8:51pm UTC](https://forum.kirupa.com/t/form-not-communicating-with-asp/128253/1 "2004-11-10T20:51:22Z")

</div>

I have a form that for some reason I can’t get to communicate with my ASP page. On my submit button I have this code…is it correct?

myButton.onPress = function(){  
myForm.sendAndLoad(“processForm.asp”,0,“POST”);  
gotoAndPlay(“thankyou”)  
}

I’m getting this error:  
Statement must appear within on handler  
myButton.onPress = function(){

which leads me to believe that it needs this in front of it  
on(release) {

any and all help would be greatly appreciated
