...

View Full Version : Ajax does not work when submitting a form



auriaks
01-28-2011, 04:14 AM
I have ajax script which uses function.php file [it is a registration form] to open. It opens it correctly, but when I submit the form I am redirected to function.php page... Why ajax wont let me submit it while It is loaded in my index.php page?

[I can post a code if it is needed]

All suggestions are welcome and thanks for your time..

venegal
01-28-2011, 09:58 AM
If you submit a form, the browser will always open the page the form is submitted to. If you don't want that, you have to either redirect the user inside function.php to index.php (probably easier), or use AJAX for the form submission as well.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum