Announcement

Collapse
No announcement yet.

dealing with checkboxes.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dealing with checkboxes.

    Hi, php thing:

    I do a query from mysql and get say 15 results.

    I want the person to be able to select a number of these, say 5. Then send it back to the script which will update a field in each of those rows that have been displayed.

    How do i get the id number to display?

    I am doing a for while loop to get the 15 results to display.

    So i have one of these things for each one showing:

    <input type="radio" name="$id" value="N">

    and clicking on it turns it to yes.

    the thing is, once submitted how do I do a for while loop to find out which $id have got a value of Y now when i don't know which $id would be sent to it?

    See what i mean?

    (this is the same as the pm thing at v2.0 but as i don't have the code i can't see it!).
    Christopher Padfield
    Web Based Helpdesk
    DeskPRO v3.0.3 Released - Download Demo Now!

  • #2
    arr. no problem.. found this :

    Code:
    $count=count($assigned_to);
    
    for ($i=0; $i<$count; $i++) {
        echo $assigned_to[$i];
    }
    that was all i needed
    Christopher Padfield
    Web Based Helpdesk
    DeskPRO v3.0.3 Released - Download Demo Now!

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X