Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello..
I have a table in my form and i want to add radio buttons at the end of each row & when i select a radio button i am able to either delete the record or update the information in the row..
Can you give me the codes for this?

Thank you..
Posted

1 solution

XML
<TABLE>
<TR>
<TD WIDTH=500 BORDERCOLOR="red">
<INPUT TYPE = "radio" NAME = "RB1" VALUE = 0> Radiobutton1</B>.
</TD>
</TR>
</TABLE>
 
Share this answer
 
Comments
Member 10626057 11-Mar-14 12:21pm    
i've retrieve data from my database and insert them in a table.. i want to add radio buttons at the end of each row..

<table class='TFtable'>
<tr>
<td>Lecturer ID</td>
<td>Lastname</td>
<td>Firstname</td>
</tr>";


while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['lecturer_id'] . "</td>";
echo "<td>" . $row['lecturer_lastname'] . "</td>";
echo "<td>" . $row['lecturer_firstname'] . "</td>";
echo "</tr>";
}
echo "</table>";

mysql_close($con);

?></span>
Abhinav S 11-Mar-14 12:26pm    
If it is the last row echo the radio button <td> instead of the normal text td.
Member 10626057 11-Mar-14 12:28pm    
no i want a radio button for each row..
Abhinav S 11-Mar-14 12:37pm    
<td><radiobutton></td>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900