Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 20th, 2010 | Syntax: None | Size: 0.36 KB | Hits: 98 | Expires: Never
Copy text to clipboard
  1. function submitted_information()
  2. {
  3.     $complete_day = date("l");
  4.  
  5.     if ($_POST['day'] == $complete_day)
  6.     {
  7.         return "This is correct! It is " . $complete_day . " today!";
  8.     }
  9.     else
  10.     {
  11.         return "This is <strong>NOT</strong> correct. It is " . $complete_day . " today!";
  12.     }
  13. }
  14. $response = submitted_information();
  15. print $response;