Hi ppl...
I have a piece of html code like this, to generate 10 radio button having values from 1 to 10. When the user selects a radio button, i want to print only that value. Any inputs on how i can achieve this is very much appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<form action="evaluate.php" method="post">
happy: <br/>
<?php
for($i=1;$i<=10;$i++)
{
echo $i ;
?>
<input type="radio" name="a[]" value= "<?php echo $i ?>"/>
<?php
}?>
<input type="submit" value="Submit" />
</form>
</body>
</html>
<?php
//end
?>
Thanks for your time..