How do I get the the value from an input text box using PHP? My code is below:
<body>
    <form action="new.php" method="post">
        Date: <input name="date" type="text" value="Saturday, October 11, 2014" />
              <input name="ok" type="submit" value="Submit" />
     <?php      
        if(isset($_POST['ok'])){
            $day=$_POST['date'];
            echo "today's date is".$day;//how do I echo only the word Saturday?
        }else   
    ?>
    </form>
</body>
I would like to echo only the word "Saturday", but I am unsure of how to do this given that my $day variable contains the entire date string. Any help?
 
     
     
     
    