Sign Guestbook
Name
E-mail Address
Homepage Title
Homepage URL
Where are you from?
How did you find us?
Check if private
Comment
",$comment); $ip=$_SERVER["REMOTE_ADDR"]; $path=$_SERVER["URL"]; $agent=$_SERVER["HTTP_USER_AGENT"]; $sql="insert into gbentry (comment,name,email,homepage,url,refer,location,ip,path,agent,private,dt,gbtype,gbnum) ". " values ('".$comment."','".$postname."','".$email."','".$homepage."','".$url."','".$refer."','".$location."','".$ip."','".$path."','".$agent."',".$pri.",now(),1,1)"; include("../inc/db.php"); $db = mysql_connect($dbserver,$dbuser,$dbpw); mysql_select_db($dbname,$db); mysql_query($sql,$db); mysql_close($db); } if($vERR!="") print('
Missing information

'.$vERR.'
'); else print('
Thank you for signing my guestbook

[ read guestbook ]'); } //================================================================= function clearStr($s){ return strip_tags(str_replace("'","''",trim($s))); } ?>