1) Specify the action of the forms POST (not GET) to a PHP page... have the PHP page open an SQL database (you can use mySQL) and store the information in there.
Now you have to options..
1) at the bottom of the PHP page (under the code) you can make an if...else statement that if the information has been sent successfully, the page will load saying something like "Successfully submitted".
2) You can have it so that the PHP redirects the window to another location
[PHP
header('window.location="http://www.pagetogoto.com');
[/PHP]
As for SQL, you're going to have to make sure that you're hosting plan/company allows for it.... Then you're going to want to CREATE the database (either by running a query that creates the database.. or you can do so easier with something like CPANEL) Inside the actual page, there are going to be three parts to your mySQL
1) Create a connection with your database gain permission to access it and open it.
2) Retrieve the information from the html form (you can do that with the which will return the information you want) and Input it into the database
3) Something to happen if the script is successful (this can be a redirect or just an echo)
For more information regarding mySQL and SQL check out this site.
http://www.w3schools.com/sql/default.asp
http://www.w3schools.com/php/php_mysql_intro.asp
__________________
"If you say something interesting, people will remember your name" ~ Anonymous
Please login or register to view this content. Registration is FREE. asp <- Irony
|