Advertisement
Guest User

Untitled

a guest
May 14th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php
  2. $type= $_POST["Type Select Name"]; //Optional
  3. $username = $_POST["Username Form Name"]
  4. $password = $_POST["Password Form Name"]
  5.  
  6. mysql_connect("localhost", "root", "ascent") or die(mysql_error());
  7. mysql_select_db("Logon") or die(mysql_error());
  8.  
  9. $query = "INSERT INTO Accounts (name, password, type) VALUES ('$username, $password, $type')") or die(mysql_error());
  10.    echo("Congratulations, you have succesfully registered the account '$username'.")
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement