daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest May 31st, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. @require_once("database.php");
  3.  
  4. if(!isset($_SESSION['user']))
  5. { $_SESSION['user'] = ""; }
  6. if(!isset($_SESSION['email']))
  7. { $_SESSION['email'] = ""; }
  8. if(isset($_POST['submit']))
  9. {
  10.     $_SESSION['user'] = $_POST['user'];
  11.     $_SESSION['email'] = $_POST['email'];
  12.  
  13.     $db->ProcRegister($_POST['user'], $_POST['pass'], $_POST['pass2'], $_POST['email']);
  14. }
  15. echo '<br/><form method="post" action="">
  16.     <table width="400px">
  17.         <tr>
  18.             <td>Username: </td>
  19.             <td><input type="text" name="user" value="'.$_SESSION['user'].'"/></td>
  20.         </tr>
  21.         <tr>
  22.             <td>Password: </td>
  23.             <td><input type="password" name="pass" value=""/></td>
  24.         </tr>
  25.         <tr>
  26.             <td>Repeat Password: </td>
  27.             <td><input type="password" name="pass2" value=""/></td>
  28.         </tr>
  29.         <tr>
  30.             <td>Email: </td>
  31.             <td><input type="text" name="email" value="'.$_SESSION['email'].'"/></td>
  32.         </tr>
  33.         <tr>
  34.             <td colspan="2" align="center"><input type="submit" name="submit" value="Register"/></td>
  35.         </tr>
  36.     </table>
  37.     </form>';
  38. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top