<input type='password' name='rPass1' />
All things below I need help with works if It got the type text.
I want to compare if two passwords are the same:
if $_POST["rPass1"] != $_POST["rPass2"] || empty($_POST["rPass2"]))
and be able to store the password in a MySQL server:
mysql_query("INSERT INTO Users (Name, Password, Email, Referer)
VALUES ('$_POST[rName]', '$_POST[rPass1]', '$_POST[rEmail1]', '$_POST[rReferer])");
and then be able to receive it again:
$result = mysql_query("SELECT * FROM Users where Name='$username'");
while($row = mysql_fetch_array($result))
{
if ($row['Password']==$password)
echo "yay"
}
Can someone please help me with this?


Sign In
Create Account


Back to top










