PHP to submit values to MySQL
Posted on 2004-04-30
I have a webpage which has lots of text boxes to enter information. When pressing submit, that information is presented back to you on a second page. As well as this, I want that data to be submitted into a MySQL database. Does anyone know the code to make the data insert itself when pressing a submit button?
So far I have:
<form action="page2.php" method="POST">
<input type="text" name="title" size="4"/>
<input type="text" name="forname" size="56"/>
<input type="submit" value="Send"/>