Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $type= $_POST["Type Select Name"]; //Optional
- $username = $_POST["Username Form Name"]
- $password = $_POST["Password Form Name"]
- mysql_connect("localhost", "root", "ascent") or die(mysql_error());
- mysql_select_db("Logon") or die(mysql_error());
- $query = "INSERT INTO Accounts (name, password, type) VALUES ('$username, $password, $type')") or die(mysql_error());
- echo("Congratulations, you have succesfully registered the account '$username'.")
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement