Need help finding error in simple php
<p>I've tried for about 2 hours and I can't find the error. A variable is passed to this page from an html form and I'm attempting to create a filter for the word "hospitol" and re-spell it as "hospital". The error is probably trivial, but I can't find it. Any help would be appreciated very much.</p>

<pre><code>&lt;?php
if ($_POST["location"] == "hospitol") 
    function convertSpace($string){
        return str_replace("Hospitol", "Hospital", $string);
    }
    $string = $_POST["location"];
    echo filter_var($string, FILTER_CALLBACK, array("options"=&gt;"convertSpace"));
else
    $location=$_POST["location"];
?&gt;
</code></pre>

<p>The error that apache logs is;</p>

<pre><code>PHP Parse error:  syntax error, unexpected T_STRING, expecting '(' in
home/linux/public/job_scheduler_input_check.php on line 5, referer:
http://localhost/calendar.php
</code></pre>

<p>NOTE: The line that apache is referring to is incorrect because I took this out of my larger file.</p>
