I have a file on my server called "pform.php", this is what it looks like:
<form action="password.php" method="get">
<input type="text" name="password13"/>
<input type="submit" value="Submit!"/>
</form>
I have it transfer to another file called "password.php", this is what it looks like:
<?php
$text=$_GET["password13"];
$right="You entered the right password!";
$wrong="You entered the wrong password!";
if($password13=="test")
{
echo $right;
}
else
{
echo $wrong;
}
?>
When I enter the right password, it returns false.
What can I change it so it returns true when I insert the right password?
if($password13=="test")==>if($text=="test")$password13, you need to use$text, as that's set to$_GET["password13"].