Advertisement
Guest User

Untitled

a guest
Jun 18th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Sign up page</title>
  5. </head>
  6. <body>
  7.  
  8.  
  9.  
  10. <form method="get" action="signup_redirect.php">
  11. username: <input type="text" name="username" placeholder="username"><br>
  12. Password: <input type="password" name="password" placeholder="password"><br>
  13. <input type="submit" value="Create Account">
  14. </form>
  15. <?php
  16. if(isset($_POST['submit'])) {
  17. $dbCon = mysqli_connect("localhost", "root", "", "test");
  18.  
  19. if (mysqli_connect_errno()) {
  20. echo "Failed to connect" .mysqli_connect_error();
  21. }
  22. ?>
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement