Hi,
    If you want to keep the selection, use the value of the form radio
buttons to determine whether the button is selected or not. One way to do it
is:
<?php
    echo "Radio1<INPUT TYPE=RADIO NAME=radio1 VALUE=value";
    if( isset($radio3) )
    {
     if( $radio1 == 'value' )
    echo " CHECKED";
    }
    echo "><BR>";
?>
This will check if the radio button has been selected, and if so it adds the
"CHECKED" keyword to the radio tag.
You can do similar things with other form inputs, such as text, textfield,
dropdown menus, etc.

"Hector M Banda" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> I have some radio buttons like: department, vendor, etc, on my form but at
> the time I submit or refresh the form, my radio buttons do not keep the
> selection.
>
> I have not idea in how to do tell  PHP to keep the values of the objects
> when the form is refresed.
>
> Thanks,
>
>
>
>
> -hector
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to