somebody help me to find way how to resolve my prob. this is my code.
<html>
<head>
<title>Contact Us</title>
<link rel = "stylesheet" type = "text/css" href = "cssmenu.css">
<link rel = "stylesheet" type = "text/css" href = "table.css">
<link rel = "stylesheet" type = "text/css" href = "body.css">
<link rel = "stylesheet" type = "text/css" href = "toplink.css">
<body id = 'body'>
<img src = "../images/banner.jpg" align = "left" width = "20%" id = 'banner'>
<center><form method="post" action="<?php echo $PHP_SELF?>" id = 'textlogin'>
User ID <input type="Text" name="UserId" id = 'tb'>
Password <input type="Text" name="Name" id = 'tb'>
<input type="Submit" name="submit" value="Sign In" id = 'button'>
<input type="Submit" name="submit" value="Sign Up" id = 'button1'>
<br>
</a>
</form></center>
<br><br><br>
<div id='cssmenu'>
<ul>
<li><a href='index.html'><span>Home</span></a></li>
<li><a href='#'><span>About</span></a></li>
<li><a href='#'><span>Menu</span></a></li>
<li class='has-sub'><a href='#'><span>Services</span></a>
<ul>
<li><a href='#'><span>Services List</span></a></li>
<li><a href='#'><span>New Services</span></a></li>
<li class='last'><a href='#'><span>Featured Services</span></a></li>
</ul>
</li>
<li><a href='#'><span>Recipes</span></a></li>
<li><a href='#'><span>What Is New</span></a></li>
<li class='last'><a href='contact.html'><span>Contact Us</span></a></li>
</ul>
</div>
<br>
<?php
//$db = mysql_connect("localhost", "root"
;
//mysql_select_db("coffeehouse",$db);
//$result = mysql_query("SELECT * FROM comment",$db);
if(isset($_POST['submit'])) {
// process form
$db = mysql_connect("localhost", "root"
;
mysql_select_db("coffeehouse",$db);
$sql = "INSERT INTO comment (UserId, Name, Email, Comment)
VALUES
('$UserId','$Name','$Email','$Comment')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
} else{
// display form
?>
<center><table><tr><td>
<form method="post" action="<?php $PHP_SELF?>">
User ID: <input type="Text" name="UserId"><br><br>
Name: <input type="Text" name="Name"><br><br>
Email: <input type="Text" name="Email"><br><br>
Comment: <TextArea name="Comment"></textarea><br><br>
<input type="Submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</form></td><tr></table></center>
<?php
} // end if
?>
</body>
</html>