hi,
Could anyone help me to find out what went wrong in my php code?
<head>
<title>testing</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
if(isset($submit)) :
$connect=mysql_connect("localhost","root");
mysql_select_db("images",$connect);
$sql="INSERT INTO names
VALUES(NULL,'$name')";
mysql_query($sql);
print("<h2>The Data Has Been Entered</h2>\n");
endif;
?>
<form name="form1" method="post" action="see2.php">
<input type="text" name="name">your name
<input type="submit" name="submit" value="Submit">
</form>
</body>