![]() |
| ||
| recordset from multiple checkbox values I have a page that displays the records from the database (repeated down) if the user selects (checkbox) a few records and clicks submit it passes the value (dbase record ID) to another page that retrieves the value and builds another recordset with just the records selected from the first page. :?: :?: :?: The webmail pages make use of this (ie: select a few e-mails and click "trash" and those e-mails get deleted) |
| ||
| Re: recordset from multiple checkbox values Give your checkboxes the same name. <input type="checkbox" name="mycheckbox" value="1"> Then when the form is posted you have an array which you can iterate or pass to a stored procedure or whatever your prefered method is. sql="update table set column=value where id in (" |
| All times are GMT -4. The time now is 10:37 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC