Second form submit capture issue - PHP
<p>Hi can some one give me a clue as to why the "Form two is here" message is not displaying in the following code? I have written a lengthy code in the following structure. Thanks for the help</p>

<pre><code>&lt;DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="one" style="width:300px; background:gray;"&gt;
&lt;form method="post" action="&lt;?= $_SERVER['PHP_SELF'] ?&gt;"&gt;
&lt;input type="text" name="txt1" id="txt1"&gt;
&lt;input type="submit" name="sendone" id="sendone" value="One"&gt;
&lt;/form&gt;
&lt;/div&gt;

&lt;div id="two" style="width:300px; background:yellow;"&gt;
&lt;?php
if(isset($_POST['sendone']))
{echo "&lt;input type='submit' name='sendtwo' id='sendtwo' value='Two'&gt;";}

if(isset($_POST['sendtwo']))
{echo "Form two is here!"; return;}
?&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
