Checking $_POST data
<p>I'm doing some spam checking on a form. The code below works as it should on my localhost (redirect to google.com if true), however, it doesn't when it's on the production server (Executes the rest of the script and DOES NOT redirect to Google.com).</p>

<pre><code>    if('POST' == $_SERVER['REQUEST_METHOD']) {
    if ($_POST["bait"]!='' || $_POST["date"] == "12/31/69" || trim($_POST["date"] == "1969-12-31")) {
        header("location: http://www.google.com");
    } else {
       //Process form here
</code></pre>

<p>I've done a <code>var_dump</code> on <code>$_POST</code> and it is <code>1969-12-31</code></p>

<p>What am I doing wrong?</p>
