Have this code i want to check if record exist in $pas before processing result then try to verify $pas by form input I have tried this:
$pas = "1234";
$text = "12345678910111213141516";
if(empty($pas)) {
    echo $text;
}
else
{
    if (isset($_POST["subscribe"]))
    {
        $phone = $_POST["phone"];
        if ($phone == $pas)
        {
            echo $text;
        }
        else
        {
            if ($phone != "$pass")
            {
                echo erro;
            }
        }
    } 
}
if(!isset($_POST["phone"]) || $_POST["phone"] != $pas)
{
    echo '<form action="#" method="POST">
        Your Phone Number <br /> 
        <input type="text" name="phone" value="080"/>
        <input type="submit" name="subscribe" value="SEND PAYMENT"/>
        </form>';
}
But I get result even when 'pas' is not there what am I doing Wrong?
 
    