Here is my code,
<?php
function($string){
$salt = "@x5v";
$hash = sha1(md5($salt.$string)).md5($string).sha1(md5($string));
return $hash;
}
?>
<?php
print "<center>";
if(isset($_POST['username'])){
echo 'Variable is set and I can use it!';
}
$Username = $_POST["username"];
$Password = md5($_POST["password.$hash"]);
$Email = $_POST["email"];
?>
I think it's this line causing the problem:
$Password = md5($_POST["password.$hash"]);
What would be the correct syntax to pass the users password into the database, encrypted with the string I defined above?