Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("db.php");
- if($_SERVER["REQUEST_METHOD"] == "POST")
- {
- // username and password sent from Form
- $username=mysql_real_escape_string($_POST['username']);
- $password=mysql_real_escape_string($_POST['password']);
- $password=md5($password); // Encrypted Password
- $sql="Insert into users(username,passcode) values('$username','$password');";
- $result=mysql_query($sql);
- echo "Registration Successfully";
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Jon Holland - About Me</title>
- <link href="Style-Sheet.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="page-wrap">
- <div id="inside">
- <div id="header">
- <h1>Jon Holland</h1>
- <div id="menu">
- <ul id="navlist_ul">
- <li class="first"><a href="1-Main.html">About Me</a></li>
- <li><a href="2-Gaming.html">Gaming</a></li>
- <li><a href="3-FilmsBooks.html">Films & Books</a></li>
- <li><a href="4-Gallery.html">Gallery</a></li>
- <li><a href="5-ThingsIFindGoddamnHilarious.html">Things I Find Godamn Hilarious</a></li>
- <li><a href="membersonly.php">membersonly!</a>
- </ul>
- </div>
- </div>
- </div>
- <p> <table width="250
- " border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="" id="register">
- <tr>
- <form name="Registration" method="post" action="registration.php">
- <td>
- <table width="95%" border="0" cellpadding="3" cellspacing="3" bgcolor="#666666">
- <tr>
- <td colspan="3"><strong>Registration</strong></td>
- </tr>
- <tr>
- <td width="78">Username</td>
- <td width="6">:</td>
- <td width="294"><input name="username" type="text"></td>
- </tr>
- <tr>
- <td>Password</td>
- <td>:</td>
- <td><input name="password" type="password"></td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td><input type="submit"value="Register"></td>
- </tr>
- </table>
- </td>
- </form>
- </tr>
- </table></p>
- <div style="clear: both;"></div>
- <div id="footer">
- <p>Footer stuff.</p>
- </div>
- </div>
- <div style="clear: both;"></div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment