BlackCross
Grünschnabel
PHP:
<?php
include ('require.php');
?>
<?
if( isset($submit) )
{
if(trim($name) == "") {
header ("Location: entry.php?name=1");
}
if(trim($text]) == "") {
header ("Location: entry.php?text=1");
}
$sql = "INSERT INTO gaestebuch
(Name, Email, Homepage, Inhalt, Datum)
VALUES
('".addslashes(htmlspecialchars($name))."',
'".addslashes(htmlspecialchars($email))."',
'".addslashes(htmlspecialchars($homepage))."',
'".addslashes(htmlspecialchars($text))."',
NOW())";
mysql_query($sql) OR die(mysql_error());
$showinfo = "1";
}
?>
Mh, als Ausgabe zeigt er mir nur ne weiße Seite , obwohl darunter die komplette Seite steht...