Advertisement
HristoBaychev

enterTheNumber

Mar 14th, 2023 (edited)
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <form method = "get">
  2.     <input type = "text" name = "elements"/>
  3.     <input type = "submit"/>
  4. </form>
  5.  
  6. <?php
  7.  
  8. if (isset($_GET['elements'])){
  9.     $input = ($_GET['elements']);
  10.     if ($input > 0 && $input < 10){
  11.         echo "Correct value!";
  12.     }
  13.     else{
  14.         echo "Invalid value!";
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement