 |
| ::: T4VN Statistics ::: |
PHP Scripts : 64 |
PHP Example : 67 |
PHP Tutorials : 21 |
PHP News : 93 |
Total Coupon : 36 |
Other Tutorials : |
Member : 215 |
Visitor Online : 4 |
Today Visit: 316 |
Total Visitor : 301338 |
Most Online : 41 |
|
 |
 |
Guest Login That Uses A Cookie
Author : MeShanez
This Guest Login That Uses A Cookie!
To Get The Cookie Info, Use The Cookie Get Code. Then Use $Name To Get It If Useing Php!
| PHP Example : | | Login.php
<?
if ($_GET['action'] == "Login") {
echo("<form method="POST" action=Login.php>
<p align="center">
Your Name: <input type="text" name="Name" size="20"></p>
<p align="center"><input type="submit" value="Submit" name="Submit"></p>");
exit;
if ($_GET['action'] == "Login2") {
if(!$Name) {
$Name = $namecook;
}
setcookie("namecook", "$Name");
echo("<center>Your Now Logined</center>");
exit;
}
?>
Put On Pages That Use The UserName
<?
$Name = $namecook;
setcookie("namecook", "$Name");
?>
| |
| |

|
 |
| ::: Resources ::: |
|
|
| ::: New Templates ::: |
|
| ::: Other Tutorials ::: |
|
 |