<?php
session_start();
?>
// de rest
<form method="post" action="model.php">
Wachtwoord: <input type="password" name="pass"><br><br>
<input type="hidden" name="inge" value="ja">
<input type="submit" value="Inloggen">
</form>
</p>
<p>
<?php
$inge = $_POST['inge'];
$pass = $_POST['pass'];
if ($inge == "ja"){
if ($pass == "freshair"){
$_SESSION['inge'] = "ja";
echo "<strong>U bent ingelogd.</strong>";
}
else {
echo "<strong>Verkeerd wachtwoord.</strong>";
}
}
?>
deze foutmelding:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/rofianda/www/www.rofianda.nl/lucht/model.php:1) in /srv/rofianda/www/www.rofianda.nl/lucht/model.php on line 2Wat doe ik fout???
edit: OK code aangepast