T4VN is an online PHP Help community that provides PHP Tutorials, PHP Examples, PHP Scripts, PHP Support
    HOME  |  HOSTING COUPON  |  TEMPLATE  |  PHP SCRIPTS  |  LINK TO US  |  LINK  |  REGISTER | CONTACT
::: Member Login :::
 Username
 Password
 
Forgot your password ?
::: PHP Tutotal :::
  PHP Basic (7)
  PHP Advanced (4)
  PHP Database (2)
  Coding Step By Step (8)
  PHP and AJAX (0)
::: PHP Example :::
  Arrays (1)
  Code Highlighters (3)
  Database Functions (12)
  Date & Time (5)
  E-Mail (6)
  Forms (5)
  Guestbooks (1)
  Logging (2)
  Miscellaneous (10)
  Password Generators (3)
  Randomizers (3)
  String Manipulation (10)
  User Authentication (6)
::: Search On T4VN :::
::: 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
::: Sponsored Links :::

PR 4 For This Webpage
Home Today :

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");
?>


Other Example


::: Resources :::
  Links Directory
  Programming 2 3
  Webmaster 2 3
  Web Design 2 3
  Web Hosting 2 3
  Other Links 2 3
  Asian ShowBiz News
  Teach Seo For You
::: New Templates :::




::: Other Tutorials :::
 Program Design

  Powered By T4VN.NET - Version 2.0 - CopyRight © T4VN.NET 2005-2007