php密码,比较,返回true或false

Sil*_*orn 0 php passwords

我的服务器上有一个名为"pform.php"的文件,它的外观如下:

<form action="password.php" method="get">
<input type="text" name="password13"/>
<input type="submit" value="Submit!"/>
</form>
Run Code Online (Sandbox Code Playgroud)

我将它转移到另一个名为"password.php"的文件,这就是它的样子:

<?php

$text=$_GET["password13"];
$right="You entered the right password!";
$wrong="You entered the wrong password!";

if($password13)=="test"
{
    echo $right;
}
else
{
    echo $wrong;
}
?>
Run Code Online (Sandbox Code Playgroud)

我可以在第7行更改什么使它比较密码"test"并返回true或false?

谢谢!