php code for yes or no
<pre><code>&lt;body background="logo1.jpg"&gt;
&lt;IMG SRC="ONGC.jpg" ALT="some text" WIDTH=1050 HEIGHT=306&gt;

&lt;form method="post" action="passing.php"&gt;
&lt;br&gt;
&lt;font size="5" color="800517"&gt;&lt;b&gt;&amp;nbsp;PLEASE LOG IN TO ENTER VISITOR DETAILS&lt;/b&gt;&lt;/font&gt;
&lt;input type="radio" name="yes" value="v1"&gt;&lt;b&gt;YES
  &lt;input type="radio" name="yes" value="V2"&gt;NO&lt;/b&gt;&lt;/p&gt;&lt;/p&gt;
&lt;input type="submit" name="submit" value="approve"/&gt;
&lt;input type="button" value="Reload Page" onClick="document.location.reload(true)"&gt;

&lt;/form&gt;
</code></pre>

<p>i have written this simple program in html..now my query is how do i write down the php code for yes/no button..i.e if yes button is clicked and submitted then only i will be redirected to passing.php page otherwise it will redirect me back to the same current page..thanks!!!</p>
