A second button to start php script, how?
<p>I have read the answer to <a href="http://stackoverflow.com/questions/1697484/a-button-to-start-php-script-how/">this question</a>, to execute PHP scripts with the click of a button.  But what if I have a "<em>nested button</em>", like this :</p>

<pre><code>    &lt;?php
    if(!empty($_POST['act'])) {
        echo "Ready to rock!";
        $someVar = "Rock n Roll";
        if(!empty($_POST['act2'])) {
            echo $someVar;
        } else {
    ?&gt;
        &lt;form method="POST" action=""&gt;
            &lt;input type="hidden" name="act2" value="run"&gt;
            &lt;input type="submit" value="Rock It!"&gt;
        &lt;/form&gt;
    &lt;?php
        }
    } else {
    ?&gt;
    &lt;form method="POST" action=""&gt;
        &lt;input type="hidden" name="act" value="run"&gt;
        &lt;input type="submit" value="Show It!"&gt;
    &lt;/form&gt;
    &lt;?php } ?&gt;
</code></pre>

<p>I heard my problem can be solved with jQuery, but I no idea.</p>

<p>anyone please.</p>
