Public paste
Weird
By: Xmoo | Date: Feb 23 2009 10:05 | Format: PHP | Expires: never | Size: 1.17 KB | Hits: 639

  1. <?php if(!IsSet($_SESSION['name'])) { ?>
  2.                         <b>Welcome</b>: <?php echo "".$_SESSION['name'].""; ?><br />
  3.                         <a href="logout.php">Log-out</a>
  4.                         <?php } else { ?>
  5.                         <center><form action="<?php "".$PHP_SELF.""; ?>" method="post">
  6.             <table style="PADDING-RIGHT: 0px; PADDING-LEFT: 8px; PADDING-BOTTOM: 0px; PADDING-TOP: 6px">
  7.               <tbody>
  8.               <tr>
  9.                 <td><input class="username"
  10.                   onblur="if(this.value=='')this.value='Username';"
  11.                   onfocus="if(this.value=='Username')this.value='';" size="10"
  12.                   value="Username" name="name"/></td>
  13.                 <td><input class="password"
  14.                   onblur="if(this.value=='')this.value='Password';"
  15.                   onfocus="if(this.value=='Password')this.value='';"
  16.                   type="password" size="10" value="Password" name="password"/></td></tr>
  17.               <tr>
  18.                 <td width="60"><input type="submit" name="login" value="Login" />
  19.             <input type="hidden" name="login" /></td>
  20.     <td width="80"><input type="submit" name="login" value="Lost pw" /></td></tr></tbody></table></form></center>
  21.         <?php } ?>
Latest pastes
2 hours ago
6 days ago
17 days ago
23 days ago
24 days ago