<?
if ($send == null) {
?>
<form method="post" action="<? echo $PHP_SELF ?>">
Ẻ<p>
   	ʾѡҹ <input type="text" name="id"><br>
	;ѡҹ <input type="text" name="name"><br>
  	 <input type="text" name="age"><br>
     	<input type="submit" name="send" value="Submit">
     	<input type="reset" name="cancel" value="Reset">
</form>
<?
}
else {
	$link = mysql_connect("localhost", "root", "1234");
	$sql = "use testdb";
	$result = mysql_query($sql);
	$sql = "Insert into testtable values('$id', '$name', $age);";
	$result = mysql_query($sql);
	if ($result)
	{
		echo "ŧ㹰ҹŻʺ<br>";
		mysql_close($link);
	}
	else
	{
		echo "öŧ㹰ҹ<br>";
	}
	echo "<a href=insert.php>Ѻ˹纡</a><br>";
	echo "<a href=Mainfunction.html>Ѻ˹ѡ</a><br>";
}
?>