form php

ProfessorX

Administrator


Quote:
For this tutorial you will need to create two pages. On the first page we will create a simple HTML form to collect some data. Here is an example:



Test Page

Data Collection


Name:
Age:





This page will send the Name and Age data to the page process.php








Quote:
Now lets create process.php to use the data from the HTML form we made:


As you may be aware, if you leave out the method="post" part of the form, the URL with show the data. For example if your name is Bill Jones and you are 35 years old, our process.php page will display as http://yoursite.com/process.php?Name=Bill+Jones&Age=35 If you want, you can manually change the URL in this way and the output will change accordingly.



 
Top