The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Submit form and stay on page Reply To: Submit form and stay on page


When you set up a <form> with an action you can set it to the URL you want (including the page you’re at). Now, the method tells the browser if you want to append the form data to the URL (get) or save it into a special variable (post).

If you wanted to submit the form without a post-back, you’ll want to look into AJAX form submits. This does stuff in the background and starts a process in the background without leaving the page at all.

All that said, what are you doing with the data inputted in the form?