Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $host = "localhost";
- $dbuser = "root";
- $dbpass = "";
- $db="partnerpaul";
- mysql_connect($host, $dbuser, $dbpass) or die ('Error: Connection error, Can not connect to the database because: ' . mysql_error());
- mysql_select_db($db) or die('Error: Selection error, Unable to select database $database because: ' . mysql_error());
- $first = $_POST['first'];
- $last = $_POST['last'];
- $email = $_POST['email'];
- $email2 = $_POST['email2'];
- $password = $_POST['password'];
- $password2 = $_POST['password2'];
- $phone = $_POST['phone'];
- $submit = $_POST['send'];
- mysql_query("INSERT INTO received VALUES ('', '$first', '$last', '$email', '$email2', '$password', '$password2', '$phone', '$send')")or die ('Error: Connection error, Can not insert fields into the database because: ' . mysql_error());;
- ?>
Add Comment
Please, Sign In to add comment