I think you need Values for the radio buttons.

<input type="radio" name="club_member" Value="N" <?php if($row->club_member
 ='N'){echo 'CHECKED';}?>>

>
> hello all -
>
> i'm having a problem getting an UPDATE to work with radio buttons and
> i'm not sure where it's gone wrong. the initial values are being grabbed
> properly, but unfortunately they don't want to get updated. the regular
> text form values update just fine. would appreciate some help.
>
> the html:
>
> <input type=hidden name="id" value="<?php echo $id ?>">
>
> club member?<br>
> No: <input type="radio" name="club_member" <?php if($row->club_member
> ='N'){echo 'CHECKED';}?>><br>
> Yes: <input type="radio" name="club_member" <?php if($row->club_member
> == 'Y'){echo 'CHECKED';}?>>
>
>
> the query to update:
>
> $query = "UPDATE outdoor SET name='$name', email='$email', zip='$zip',
> club_member='$club_member' WHERE id='$id'";
> $result = mysql_query($query) or die ("Error in query: $query. " .
> mysql_error());
>
>
>
> [trying to keep the code paste to what i think is important, let me know
> if more is needed for info.]
>
>
> thanks!
> m.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

Reply via email to