PDA

View Full Version : Ajax form submit



Vernier
03-13-2012, 08:28 PM
Hey,

when my page loads, I need a page to load on the page, like an iframe (except iframes seem to take forever to load, and most of the time don't). So I tried ajax. I've got the form to appear on the page but when I lcick submit, it just refreshes the page.

My codes are as follows:

Index.html: http://codeviewer.org/view/code:23f6

Requests.php: http://codeviewer.org/view/code:23f7

How can I submit the form without the page just refreshing, but actually submitting the form?

Thanks :)

~ David

blackshwak
08-29-2012, 08:49 AM
i don't know where to ask this question but, i hope you have the answer or know the place i should ask this question:

is there a piece of code to generate something like this image:

http://mystore.clan.su/Submit_Form.png

i want every time submit button clicked on page 01 --------- a line takes place with the information in page 02