[PHP-DB] How to keep selection on radio buttons when the form is refreshed?

2001-04-25 Thread Hector M Banda
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 --

Re: [PHP-DB] How to keep selection on radio buttons when the form is refreshed?

2001-04-25 Thread Joel Gilbert
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 Radio1INPUT TYPE=RADIO NAME=radio1 VALUE=value; if( isset($radio3) ) { if( $radio1 == 'value' ) echo CHECKED;