Guest User

Untitled

a guest
Oct 5th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1.  
  2. <?php
  3. $username = "toontow7_login";
  4. $password = "T2+~oTnf=ZEC";
  5. $hostname = "localhost";
  6.  
  7. $databasehandle = mysql_connect($hostname, $username, $password) or die("Couldn't Connect to the database!");
  8.  
  9. $selected = mysql_select_db("toontow7_login", $databasehandle);
  10.  
  11. if(isset($_POST['username'] && $_POST['password'] && $_POST['fname'] && $$_POST['lname'] && $_POST['email'])) {
  12. $user = $_POST['username'];
  13. $pass = $_POST['password'];
  14. mysql_query("INSERT INTO users (Username, Password) VALUES ($user, $pass)");
  15. echo("
  16. <html>
  17. <body>
  18. <h1>
  19. User created Successfully.
  20. </h1>
  21. <h2>
  22. <a href='login.php' style='text-decoration:none;'>
  23. Click Here to go to Login Page.
  24. </h2>
  25. </a>
  26. </body>
  27. </html> ")
  28. }
  29. else {
  30. echo '
  31. <script type="text/javascript">
  32. alert("Please Fill Out the Registeration Form Correctly.");</script>';
  33. }
  34.  
  35. mysql_close();
  36. ?>
  37.  
  38.  
  39. <style>
  40.  
  41. * {
  42. text-align:center;
  43. font-family:Segoe UI;
  44.  
  45. </style>
  46. <html lang="en">
  47. <head>
  48. <meta charset="utf-8">
  49. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  50. <meta name="viewport" content="width=device-width, initial-scale=1">
  51. <meta name="description" content="">
  52. <meta name="author" content="">
  53. <link rel="icon" href="../../favicon.ico">
  54.  
  55. <title>TTUL Registration Page</title>
  56.  
  57. <!-- Bootstrap core CSS -->
  58. <link href="css/bootstrap.min.css" rel="stylesheet">
  59.  
  60. <!-- Custom styles for this template -->
  61. <link href="signin.css" rel="stylesheet">
  62.  
  63. <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  64. <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  65. <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
  66.  
  67. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  68. <!--[if lt IE 9]>
  69. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  70. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  71. <![endif]-->
  72. </head>
  73.  
  74.  
  75. <form action="register.php" method="POST">
  76. <body>
  77. <h2><strong>
  78.  
  79. <div class="container">
  80.  
  81. <form class="form-signin" role="form">
  82. <h2 class="form-signin-heading">Please Fill Out Information Fields To Register.</h2>
  83. <br />
  84. <br />
  85. <div class="well">
  86. <input type="firstname" class="form-control" placeholder="First Name" name="fname" required autofocus>
  87. <br />
  88. <br />
  89. <input type="lastname" class="form-control" placeholder="First Name" name="lname" required autofocus>
  90. <br />
  91. <br />
  92. <input type="email" class="form-control" placeholder="Email address" name="email" required autofocus>
  93. <br />
  94. <br />
  95. <input type="text" class="form-control" placeholder="IGN" name="username" required>
  96. <br />
  97. <br />
  98. <input type="password" class="form-control" placeholder="Password" name="password" required>
  99. <br />
  100. <br />
  101. <button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
  102. </div>
  103. </form>
  104. </div> <!-- /container -->
  105. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  106. <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  107. </h1>
  108. </strong>
  109. </form>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment