Hi, Im using prototype to send a request to some php for some reason it isn’t working, even though it works on another area with the exact code…anyway thats not the important bit at the moment.
When I submit my form the data gets sent to the url i.e. “?data=1&code=2” etc… I don’t want this to happen as I am using ajax… I have also specified so my form doesn’t have a method of post.
here is the info for my form:
<form id="create" name="form1" enctype="multipart/form-data" onSubmit="save(); return false;">
I don’t think it’s the onSubmit or enctype cuz I have tried removing it etc…any ideas and advice would be great…
it’s really weird cuz I pretty much have the same setup for other forms and it works and I’m using the same js too.