Skip to content

Instantly share code, notes, and snippets.

@agrean
Created May 30, 2016 09:23
Show Gist options
  • Save agrean/4deddd43900b9a99040b955acb2c640f to your computer and use it in GitHub Desktop.
Save agrean/4deddd43900b9a99040b955acb2c640f to your computer and use it in GitHub Desktop.
<!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>
@agrean
Copy link
Author

agrean commented May 30, 2016

Improve the code if you can*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment