Jump to content

Steveinid

Members
  • Posts

    14
  • Joined

  • Last visited

Community Answers

  1. Steveinid's post in I can't get the right result was marked as the answer   
    Give this a try for your code:
    <?php if (!isset($_POST['age'])) { echo 'enter a valid age'; } else { $age = $_POST['age']; if($age >=18) { echo "you can vote!!!"; } else { echo "You are not allowed to vote"; } } ?>  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.