I cant figure this out, Im a newbie. This has stumped me.
If I can figure it out with this example I think Ill understand how to do it for others. Simple Example. Submitting test to be inserted into MySQL.
HTML
<html>
<head>
<title>insert record</title>
</head>
<body>
<form action="dbtest4.php" method=get>
<P> text to add:<br>
<input type=text name="testfield" size=4>
<p><input type=submit name="submit" value="insert record"></p>
</form>
</body>
</html>
PHP
<?
$conn = mysql_connect("localhost", "user", "password");
mysql_select_db("test",$conn);
$sql= "insert into jason1 values ('9','$testfield')";
$result = mysql_query($sql,$conn) or die(mysql_error());
echo $result;
?>