Hi,
I'm displayin data in my database in a table form using a for loop . In my loop i added a radiobutton so that a selected radio button would identify the row on the table. This is the code is used:
for($j=0;$j<=$nrows2;$j++){
while($row = mysql_fetch_row($result)){
print "<tr><td>".$row [0]."</td><td>".$row [1]."</td><td>".$row [2]."</td><td><input type=radio name=".$j." value=".$j."</td></tr>";
}
}
My problem is i tried the following code hoping it would identify which radiobutton was selected but it is non responsive
if(isset($_POST['ed']))
{
echo $_POST[$j];
}
Thanks.