0

Looking for a way to prevent page from going to my PHP page after clicking submit. You can see the form for yourself if you got to http://zaryquiz.com/

  • Use ajax for form submission or give redirection in index2.php to the required location after completing the process – Santhy K Feb 08 '17 at 03:37

1 Answers1

0

The 'action' attribute of your form tells the form where to submit:

<form method="post" action="page_you_want_to_submit_to.php">

Yours points to 'index2.php' so that is where it is going. Where do you want it to go?

djs
  • 3,947
  • 3
  • 14
  • 28