Just was messing arround.
And got this.
Example: http://elitetactics.sytes.net/login.php
Login.php
PHP Code:
<form action='cp.php?' name='login' action='get'>
User <input type='text' name='user'><br>
Pass <input type='password' name='pass'><br>
Email <input type='text' name='mail'><br>
<input type='submit' value='Login'>
</form>
Cp.php
PHP Code:
<?php
$user2=$_GET['user'];
$pass2=$_GET['pass'];
$email=$_GET['mail'];
setcookie("user", $user2, time()+3600);
setcookie("pass", $pass2, time()+3600);
setcookie("mail", $email, time()+3600);
?>
<html>
<body>
<?php
if (isset($_COOKIE["user"]))
echo "Welcome " . $_COOKIE["user"] . "!<br />";
else
echo "Welcome Guest!<br />";
?>
<?php
if (isset($_COOKIE["pass"]))
echo "Your Password is " . $_COOKIE["pass"] . "!<br />";
else
echo "No Password<br />";
?>
<?php
if (isset($_COOKIE["mail"]))
echo "Your Email is " . $_COOKIE["mail"] . "!<br />";
else
echo "No Email<br />";
?>
<br><b><a href=logout.php>Logout</a>
<br><b><a href=login.php>Sing In</a></b>
<br>Refresh For your information to appear.
</body>
</html>
logout.php
PHP Code:
<?php
setcookie("user", $user, time()-3600);
?>
<?php
setcookie("pass", $pass2, time()-3600);
?>
<?php
setcookie("mail", $email, time()-3600);
?>
You are loggout out.<br><b>
<a href=login.php>Sign in</a><br>
<a href=cp.php>Control Panel</a>
Kinda Cool...No need to change anything in the files.
Start at login.php