form_submit.php

  View Code

Click on the links in the menu for more PHP examples.

PHP Notes

- Submit a form

Here are 2 examples of HTML forms, GET and POST.
 
 

Submit using the GET method






 


The form submit GET method sends input data to another page or to itself. The input data is attached behind the page URL, and is visible in the browser's address text box.

Sample HTML used to create this GET method form:
HTML sample Form submit GET method

Submit using the POST method






 


The form submit POST method sends input data to another page or to itself. The input data is attached behind the page URL, but is not visible in the browser's address text box.

Sample HTML used to create this POST method form:
HTML sample Form submit POST method