ohbutt69

register

Dec 11th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.24 KB | None | 0 0
  1. <?php
  2. include("db.php");
  3. if($_SERVER["REQUEST_METHOD"] == "POST")
  4. {
  5. // username and password sent from Form
  6. $username=mysql_real_escape_string($_POST['username']);
  7. $password=mysql_real_escape_string($_POST['password']);
  8. $password=md5($password); // Encrypted Password
  9. $sql="Insert into users(username,passcode) values('$username','$password');";
  10. $result=mysql_query($sql);
  11. echo "Registration Successfully";
  12. }
  13. ?>
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  18. <title>Jon Holland - About Me</title>
  19. <link href="Style-Sheet.css" rel="stylesheet" type="text/css" />
  20.  
  21. </head>
  22. <body>
  23.     <div id="page-wrap">
  24.         <div id="inside">
  25.            
  26.             <div id="header">
  27.                 <h1>Jon Holland</h1>
  28. <div id="menu">
  29.             <ul id="navlist_ul">
  30.                 <li class="first"><a href="1-Main.html">About Me</a></li>
  31.                 <li><a href="2-Gaming.html">Gaming</a></li>
  32.                 <li><a href="3-FilmsBooks.html">Films & Books</a></li>
  33.                 <li><a href="4-Gallery.html">Gallery</a></li>
  34.                 <li><a href="5-ThingsIFindGoddamnHilarious.html">Things I Find Godamn Hilarious</a></li>
  35.                 <li><a href="membersonly.php">membersonly!</a>
  36.             </ul>
  37.         </div>
  38.                     </div>
  39.             </div>
  40.       <p>            <table width="250
  41.             " border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="" id="register">
  42. <tr>
  43. <form name="Registration" method="post" action="registration.php">
  44. <td>
  45. <table width="95%" border="0" cellpadding="3" cellspacing="3" bgcolor="#666666">
  46. <tr>
  47. <td colspan="3"><strong>Registration</strong></td>
  48. </tr>
  49. <tr>
  50. <td width="78">Username</td>
  51. <td width="6">:</td>
  52. <td width="294"><input name="username" type="text"></td>
  53. </tr>
  54. <tr>
  55. <td>Password</td>
  56. <td>:</td>
  57. <td><input name="password" type="password"></td>
  58. </tr>
  59. <tr>
  60. <td>&nbsp;</td>
  61. <td>&nbsp;</td>
  62. <td><input type="submit"value="Register"></td>
  63. </tr>
  64. </table>
  65. </td>
  66. </form>
  67. </tr>
  68. </table></p>
  69.       <div style="clear: both;"></div>
  70.            
  71.             <div id="footer">
  72.                 <p>Footer stuff.</p>
  73.             </div>
  74.        
  75.         </div>
  76.        
  77.         <div style="clear: both;"></div>
  78.    
  79.     </div>
  80. </body>
  81. </html>
  82.  
  83.  
Advertisement
Add Comment
Please, Sign In to add comment