Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a form that uses method="get" and then action = "post.php". I'm trying to move the data that was entered into the form from the post.php into a db i have set up on my website. I have absolutely NO idea how to do this.
So far, the only php code i have done is:
<?php
$username = "u70383618";
$password = "letmein";
$hostname = "MYSQLHOST";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to the MySQL Host.");
print "Successfully connected to the MySQL Host.
";
$selected = mysql_select_db("d60350713",$dbh)
or die("Unable to connect to MYSQL database (d60350713).");
print "Successfully connected to the MySQL database (d60350713)";mysql_close($dbh);
?>So pretty much, i can connect to the MySQL host and the database itself. I've googled a bunch to try to find something that would help, but i can find anything. I need to find the commands that will post the form items into the MySQL DB. If somebody could help me out (or point me in the right direction), it'd be greatly appreciated.

Data is inserted and extracted from a database using queries. There is way too much information to explain it within a forum. Do a search for "PHP MySQL Tutrial" to find something that works for you. Then post back with any specific questions.
Michael J

just visit hotscripts.com or php resource index, download a sample free db related script and see yourself how to do it.
rhi
Get your free web hosting here

![]() |
web page not opening
|
Form to email page link.....
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |