pro pizza
Gebruiker
- Lid geworden
- 24 dec 2007
- Berichten
- 454
PHP:
<?php session_start(); ?>
<?php
If (!isset($_SESSION['naam'])) {
Print "niet ingelogd";
header('refresh:3 url=login.php');
}
else{
print "ingelogd";
?>
<html>
<head>
<title>U bent ingelogd </title>
</head>
<body>
<?php
Print "Hallo,".$_SESSION['naam'];
?>
<?php
}
?>
<BR>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<input type="submit" value="Loguit" naam="jawel" />
</form>
<?php
If (isset($_POST['jawel'])) {
session_destroy();
?>
<meta http-equiv="refresh" content="2; url=uitgelogd.php">
<?php
}
?>
</body>
</html>
Mvg, Ruben
****** Vraag heb ik zelf al opgelost **************:thumb:
Laatst bewerkt: