Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <h1>Online Bookmarks</h1>
  2.  
  3.     <b>This site can help you;</b><br />
  4.         <ul>
  5.             <li>Store your bookmarks online with us!</li>
  6.             <li>See what other users use!</li>
  7.             <li>Share your favorite links with others!</li>
  8.         </ul>
  9.  
  10.     <form action="" method="get">
  11.         <table>
  12.             <tr><td>Username:</td><td><input name="user" type="text" /></td></tr>
  13.             <tr><td>Password:</td><td><input name="pass" type="text" /></td></tr>
  14.             <tr><td><input type="submit" name="submit" value="Send" /></td></tr>
  15.         </table>
  16.    
  17.    
  18.    
  19. <?php
  20.     if( isset($_GET["submit"])) {
  21.         $user   =   $_GET["user"];
  22.         $pass   =   $_GET["pass"];
  23.        
  24.        
  25.         if ($user=="test" && $pass=="test"){
  26.             //execute popup window that says you are logged in
  27.         }
  28.        
  29.         else{
  30.             echo "Wrong username or password";
  31.         }  
  32.     }
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement