I feel I'm so close.

I have a form with multiple database records with a checkbox to indicate which records to update set up like so:

$name = "ed[" . $row['id'] . "]";
        
<input type=\"checkbox\" name=\"" . $name . "\" value=\"Y\">

Each text input is set up like so:

<input type=\text\" name=\"fname[]\" value=\"" . $row['fname'] . "\">

On the processing page I am doing this:

foreach($ed as $id=>$val){
     $query = "UPDATE ref_events_reg
                 SET    fname = '$fname'
                        WHERE id = '{$id}'";

I am looping through the correct records, but every field is being updated to "Array".

What tweak do I need to make?

Thanks.

Albert Padley

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to