Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Sign up page</title>
- </head>
- <body>
- <form method="get" action="signup_redirect.php">
- username: <input type="text" name="username" placeholder="username"><br>
- Password: <input type="password" name="password" placeholder="password"><br>
- <input type="submit" value="Create Account">
- </form>
- <?php
- if(isset($_POST['submit'])) {
- $dbCon = mysqli_connect("localhost", "root", "", "test");
- if (mysqli_connect_errno()) {
- echo "Failed to connect" .mysqli_connect_error();
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement