|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help wth recordsert and checkboxs
Hi,
I have the following recordset that outputs a list of values from a recordset long with a checkbox next to each one as follows: fieldaValue1 fieldbValue1 checkbox1 fieldaValue2 fieldbValue2 checkbox2 and so on.... the code I have is this: ?php echo $row_Recordset1['PDF_KEY_PRODUCT']; $i = 1 + $varincrement; $varincrement = $i++; ?> </td> <td width="150"><?php echo $row_Recordset1['PDF_LONG_DESCRIPTION']; ?></td> <td width="50"> </td> <td width="50"><?php echo $row_Recordset1['PDF_SELLING_PRICE']; ?></td> <td width="50"><input name="textfield" type="text" size="5"></td> <td width="50"><?php echo "<input type="checkbox" name="checkbox$varincrement" value="checkbox"></td>";?> </tr> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> I use an increment operator to produce new names for each checkbox in the recordset, My problem is this: I want to let the user click on different checkboxes and then submit only the values rows where a checkbox is checked to another script, does anyone have any ides how to do this?? thanks a lot |
|
#2
|
|||
|
|||
|
RE: Help wth recordsert and checkboxs
Actually your code and explaination is not clear. But I got into this idea... You want to sumbit only the values to the database table which checkboxes are checked.. .right?
Your checkbox code should be: <input type=checkbox name="chkbox" value="checked"> To check whether it is 'checked': |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Help wth recordsert and checkboxs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|