Hi all,
I need to collect a few records of data from a db and display with edit/delete record functiionality. I currently output each record as it is collected from the db in a row of an html table. Each row has an associated radio button. At the bottom of the table is an edit and delete button. The idea is the user selects a radio button and clicks edit or delete. I then test to make sure a radio was selected with javascript and if so, return the index of the associated row in the table. Here is a snippet of the edit button:
<td align=center><input type=button name=up value=\" Edit \" onClick=\"getSelectedRadio(this.form.radio)\">
This is my edit button. Question is...well, I'm thinking I need to pass the radio index to a session varaible and then submit the form. But I don't know how to do that in this peice of code above. I don't feel like I'm doing this right. Can someone tell me if this is correct?