<! Try this....Tested on my machine: Win98, Mysql, Apache 1.3.12, PHP4.0.1pl2
CREATE TABLE test2 (
id int(10) NOT NULL,
name varchar(100)
);
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<?php
if ($submit) {
echo "Thanks for updating\n";
$db = mysql_connect("localhost", "root");
mysql_select_db("test",$db);
$sql = "INSERT INTO test2 (id,name) VALUES ('$id','$name')";
$result = mysql_query($sql);
} else {
?>
<form>
ID <input type="text" name="id"><br>
Name <input type="text" name="name"><br>
<input type="Submit" name="submit" value ="submit">
</form>
<?php
}
?>
</body>