| ";
print " "; print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print " ";
print "![]() "; print " ";
print " ";
print " ";
print " ";
print " ";
print "\n";
print ""; //print "BBCode instructions"; } else if (isset($_POST['submit'])) { $name=$_POST['name']; $country=$_POST['country']; $email=$_POST['email']; $homepage=$_POST['homepage']; $aim=""; $icq=""; $yim=""; $msn=""; $comment=$_POST['comment']; //first check if the number submitted is correct $number = $_POST['txtNumber']; if (md5($number) != $_SESSION['image_random_value']) { print "Verification code is incorrect, please go back and sign again "; }else { if(!$name || !$comment) { print "Name or comment not entered, please go back and sign again "; } else { $r=$_SERVER["REMOTE_ADDR"]; $day=date("D M d, Y H:i:s"); $timegone=date("U") ; //seconds since Jan 1st, 1970 $putinguestbook="INSERT INTO gbook(name, country, mail, homepage, comment, realtime, aim, icq, yim, msn, time,IP) VALUES('$name','$country','$email','$homepage','$comment','$day','$aim','$icq','$yim','$msn','$timegone','$r')"; //echo $putinguestbook; if (!mysql_query($putinguestbook)) { echo "good done"; } else print "Thanks for posting, you will now be redirected "; } } } ?> |