Well, i’m trying to make a very simple login form, and have got this far;
[code=php]<?php
$loginform = ‘<form action=”login.php” method=”get”>Username:<input name=”user” type=”text” id=”user”><br /><br />Password:<input name=”pass” type=”text” id=”pass”><br /><br /><input type=”submit” name=”Submit” value=”Submit”></form>’;
echo $loginform;
if ($_GET[‘user’] == ‘Johnno’)
{
if ($_GET[‘pass’] == ‘pass’)
{
echo ‘Hello’;
}
}
?>
Thats all fine and dandy, but is there a way to delete the login form after it is filled out, without transfering to a new page, because I want this all in one file.
I’ve tried delete() and unset(), and cant think of anything else.
Thanks.