How can we submit from without a submit button?

There may be times where one would have to submit a form without having access to a submit button. In these cases, there are four main ways to submit the form:

  • Submitting it by clicking on a link
  • Submitting it by selecting an option from drop down box by utilizing the onChange command
  • By using JavaScript, specifically the command: document.form.submit();
  • By using PHP, specifically the command: header(“location:page.php”);

By using the header Location tag in PHP allows one to send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless the 201 or a 3xx status code has already been set.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.