A by ste mi mohli prosim poradit aj ze kde to mam vlozit aby mi to islo, lebo mam v guestbooku dost vela priecinkov a vobec netusim kde by to mohlo pasovat:
napriklad action.php:
Kód:
<?php
....
....
if(!isset($error)){
$postentry = @mysql_query("INSERT INTO `entries` (name, email, website, message, date, ip) VALUES ('".addslashes($_POST['name'])."', '".addslashes($_POST['email'])."', '".addslashes($_POST['website'])."', '".addslashes($_POST['message'])."', now(), '".$_SERVER['REMOTE_ADDR']."')");
$message = "Hey there!\n\r You're popular today!\n Someone gave you a guestbook entry:\n\r";
$message .= "From: ".stripslashes($_POST['name'])."\n";
$message .= "E-mail: ".stripslashes($_POST['email'])."\n";
$message .= "Website: ".stripslashes($_POST['website'])."\n\r";
$message .= "Message:\n".stripslashes($_POST['message'])."\n"; mail($email, 'New GuestBook Entry!', $message);
if($postentry == true){
unset($_POST); }}}
....
....
?>