want to display dynamic radio buttons as submit button means when a particular radio button is selected it should displaycorrespondingqus frmo db
ggroup=1 is for c
ggroup=2 for c++ and soon
$query = "select * from questions where ggroup=1 order by random()
something here is to be done ggroup=[selected radio button value]
<fieldset>
<legend> select the exam u want to take </legend>
<input type="radio" name="ggroup" value="1" checked="checked"> C<br>
<input type="radio" name="ggroup" value="2"> C++<br>
<input type="radio" name="ggroup" value="3"> VB.Net<br>
<input type="radio" name="ggroup" value="4"> Asp.Net<br>
</fieldset>
uselogged.php
<?php
include ('./userloggingtrue.php');
$connection = pg_connect("dbname=harmantest user=damdev host=localhost");//connectivity being made with database
$query = "select * from questions where ggroup=1 order by random() ";//randomly displaying the questions
$result = pg_query($connection, $query);
print '<form action="getmarks5.php" method="post">';
$count = 0;