Working with Forms in PHP
Working with Forms
One of the most important features of PHP. Using forms you can get and recieve information from visitors. You may store that data into a file, place an order, gather user statistics, register the person to your web forum, or maybe subscribe them to your weekly newsletter.
| <html> |
The
above example HTML page contains two input fields and a submit button. When
the user fills the form and clicks submit button, then "form_submitted.php"
file is called.
The "form_submitted.php" file looks like this:
| <html> |
Output
| Hello
Smith |
In this example, two variables are used $name and $email. actually $name and $email are name of textfields.
