Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>sign up processing</title>
- </head>
- <body>
- <a href="register.php">Sign Up</a>
- <a href="index.php">Home</a>
- <br>
- <?php
- $user = $_POST["name"];
- $pass = $_POST["pass"];
- $passCheck = $_POST["passCheck"];
- $email = $_POST["email"];
- $emailCheck = $_POST["emailCheck"];
- $link = mysql_connect("localhost", "root", "leroy");
- if (!$link)
- {
- die('Could not connect. ' . mysql_error());
- }
- else
- {
- if ($email == $emailCheck)
- {
- if ($pass == $passCheck)
- {
- mysql_select_db("userList", $link);
- mysql_query("INSERT INTO userInfo (userName, password, email) VALUES ($user, $pass, $email)");
- echo "Your username has been created with the following information:";
- <br>echo "Username: $user";
- <br>echo "Password: $pass";
- <br>echo "Email Address: $email";
- }
- else
- {
- <br>echo 'The data you entered was not correct. Please re-enter data';
- }
- }
- else
- {
- <br>echo 'The data you entered was not correct. Please re-enter data';
- }
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment