 |
| ::: T4VN Statistics ::: |
PHP Scripts : 51
|
PHP Example : 67
|
PHP Tutorials : 21
|
PHP News : 93
|
Total Coupon : 36
|
Other Tutorials :
|
Member : 182
|
Visitor Online : 5
|
Today Visit: 351
|
Total Visitor : 134072
|
Most Online : 31
|
|
|
 |
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 ::: |
|
|