hi redarrow thanks for helping me btw i did change the handler to this [quote] <html> <link href="style.css" rel="stylesheet" type="text/css" /> <body> <p> <?php $db=mysql_connect("localhost","root","")or die("GAK BISA KONEK"); mysql_select_db("guest",$db); $name=addslashes($_POST['name']); $email=addslashes($_POST['email']); $comment=addslashes($_POST['comment']); $datetime=addslashes($_POST['datetime']); $datetime=date("y-m-d h:i:s"); //date time if($_POST['submit']){ $sql="INSERT INTO guestbook(`name`, `mail`, `comment`, `datetime`)VALUES('$name', '$email', '$comment', '$datetime');"; $result=mysql_query($sql); } //check if query successful if($result){ echo "Successful"; echo "<BR>"; echo "<a href='viewguestbook.php'>View guestbook[/url]"; // link to view guestbook page } else { echo "ERROR"; } mysql_close(); ?> </p> </body> </html> [/quote] but its error. when i press submit btw i dunno what u mean uppercase post. i did put post method. thanks a lot for the explanation mate. God Bless