PDA

View Full Version : How to update a single record in Data Assist Repeat Selection


jwright114936
05-19-2009, 01:44 PM
We set up a form with a single submit button. We have a recordset with multiple rows using the Data Assist Repeat Selection to display the rows which contain a radio button with a value="1" and a hidden field with a userID. We want to update only a single record from the recordset based on a userID contained in the hidden field.

Thanks

Ray Borduin
05-19-2009, 01:49 PM
Have the radio button value be the key value for the field you want updated and use it to determine the field to update.

jwright114936
05-20-2009, 12:36 PM
Thanks. Works great.

But now when I try to validate the form comparing a hidden field with a value= userID to SESSION[userID] it always fails. Any ideas?

Thanks

Ray Borduin
05-20-2009, 01:12 PM
Probably a typo... I mean there is no way to tell without looking at the code... maybe no session_start() before the check?