<html>
<head>
</head>    
    <body>
        <?php
        error_reporting(0);
        //what is the difference between isset and empty?
        echo '<pre>';
       var_dump($_POST);
        echo '</pre>';
        echo 'the sport you selected is '.$_POST['sports'];
      
       // which is faster Post, Get or Request?
        if (!empty($_POST['fullname'])){
        echo "Welcome, ".$_POST['fullname'];
        }
        ?>
        
        
        
    <form action="form.php" method="post">
    <input type="text" name="fullname" /><br/>
    Are you student or faculty?
    <label for="student"> Student </label><input type="radio" name="status" id="student" value="student"/>  
        <label for="faculty"> Faculty </label>
         <input type="radio" name="status" value="faculty"/> <br>
        <select name ="state">
        <option value="">Choose Below</option>
         <option value="Ca">California</option> <option value="Other">Other</option>
        </select>    <br> 
        
        
        Check the sports that you play<br>
        Hockey<input type="checkbox" name="sports[]" value="hockey"> Basketball<input type="checkbox" name="sports[]" value="basketball">
         Football<input type="checkbox" name="sports[]" value="football">
          Baseball<input type="checkbox" name="sports[]" value="baseball">
        <br>
        <textarea name="comments"></textarea><br>
             
        
        
    <input type="submit" name ="submit" value="Submit Data"/>    
    </form>
    
    </body>
    

</html>
