Created
May 30, 2016 09:23
-
-
Save agrean/4deddd43900b9a99040b955acb2c640f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<?php | |
include 'config.php'; | |
$fName=$_POST[FName]; | |
$lName=$_POST[LName]; | |
$username=$_POST[Username]; | |
$password=$_POST[Password]; | |
$phone=$_POST[phone]; | |
$email=$_POST[email]; | |
$location=$_POST[location]; | |
$password=md5($password); | |
$query="INSERT INTO sign_up (FName,LName,Username,Password,phone,email,location) VALUES('$fName','$lName','$username','$password',$phone,'$email','$location')"; | |
$result=mysql_query($query) or die(mysql_error()); | |
if($result){ | |
echo "Sign Up Successful"; | |
} | |
else{ | |
echo "Failed"; | |
} | |
?> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Improve the code if you can*