PHP code not being executed within HTML file
<p>I have a file with the following code block inside some of the page html:</p>

<pre><code>&lt;input name="appname" type="text" value="&lt;?php Load('appname'); ?&gt;" placeholder="Your App Name" /&gt;
</code></pre>

<p>which calls this function:</p>

<pre><code>&lt;?php
// Load cookie values 
function Load($item) {
    $item = strtolower($item);
    if(!$_COOKIE['appsite_'.$item]) return null;
    return $_COOKIE['appsite_'.$item];
}
?&gt;
</code></pre>

<p>The function is at the top of the HTML file, the cookies are created but for some reason the code inside the input HTML markup is not being executed. </p>

<p>I can access the value of the cookie by doing the following just beneath the function:</p>

<pre><code>$item = "appname";
echo $_COOKIE['w8appsite_'.$item];
</code></pre>

<p>It seems like the PHP code lower down the file is just not being executed?</p>
