Code
$adminname="admin";
$adminpasswort="admin";
if (isset($_POST['p_username'])){
$username = $_POST['p_username'];
$password = $_POST['p_password'];
if ($username == $adminname){
echo 'Name ok';
if ($adminpasswort == $password){
echo "Passwort ok";
header("Location: http://sebastian1012.bplaced.net/homepagebasti1012/gastebuch/admin.php");
exit;
}}}
Alles anzeigen
Warum leitet der nicht um der schreibt immer
Warning: Cannot modify header information - headers already sent by (output started at /link.php
Kann man überhaupt so umleiten oder brauch man dazu ein anderen Befehl?
Bei php manual steht das header Informationen ganz am anfang des Codes stehen müßen ,außer Location und HTTP blablub wären Specialfälle