I have this code below in achievement i want to verify if 1234 is inserted in form before output the record in $text i have tried:
 $text = "12345678910111213141516171819202121";
 $pas = "1234";
 if(isset($_POST["subscribe"]))
 {
 $phone = $_POST["phone"];
 if($phone = "$pas")
 {
 echo $text;
 }
if($phone != "$pass")
 {
 echo erro;
 }
 }
     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></div>';
but i get record in $text when empty or wrong $pas is submited in the form. Great thanks in advance
 
    