# Question on forms and post data

**URL:** <https://forum.kirupa.com/t/question-on-forms-and-post-data/254631>\
**Category:** Uncategorized\
**Created:** [March 13, 2008, 6:13pm UTC](https://forum.kirupa.com/t/question-on-forms-and-post-data/254631 "2008-03-13T18:13:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [March 13, 2008, 6:13pm UTC](https://forum.kirupa.com/t/question-on-forms-and-post-data/254631/1 "2008-03-13T18:13:57Z")

</div>

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:

```auto
<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.
