php calling html
<p>can you please let me know what I am missing:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;&lt;title&gt;page&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;h2&gt;&lt;center&gt;Welcome to the mainpage&lt;/center&gt;&lt;/h2&gt;&lt;br /&gt;
&lt;a href="sample4.php?currpage=2"&gt;Home page&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>php code is :</p>

<pre><code>&lt;?PHP

$currpage=$_GET['currpage'];


echo "Hello world $currpage"; 
?&gt;
</code></pre>

<p>when I click the homepage I want the sample4.php script to be executed and that output which is a html page to be displayed.
But when I click the homage page : I get a file window download.</p>

<p>I have the php script in the same location I have the html?</p>
