Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Thanked 2 Times in 2 Posts

    Ajax does not work when submitting a form

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

  2. #2
    Join Date
    Apr 2009
    Thanked 426 Times in 424 Posts
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts