Date: 11/18/99
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Am I doing right?"
- Previous message: Jeroen Laarhoven: "[PHPLIB] 302 server response reply results in looping"
- Maybe in reply to: Davor Cengija: "Re: [PHPLIB] oohforms: default CHECKED & radio"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Davor,
Thanks again! I see that it works as you said but
calling load_defaults() on the initial display of the
page just does not sit well with me. I cannot find where
it would error but it just does not feel right... but I
guess my worries are for not :-)
Thank you,
Bob
On Wed, 17 Nov 1999, Bob Strouper wrote:
>Hello,
>
>How do I get one radio button in a group of radio buttons
>to be checked?
>
>I have:
>...
>$f->add_element(array("type"=>"radio","name"=>"myradio"));
>...
>$f->show_element("myradio", "yes");
>$f->show_element("myradio", "no");
>...
>
>I would like to have the "'myradio', 'no'" element to
>include CHECKED="true" by default. Is this possible?
Same thing as with SELECT.
if(!$myradio) $myradio="yes";
$f->load_defaults();
$f->show_element("myradio", "yes");
$f->show_element("myradio", "no");
At least, that's the way I'm doing it.
>
>Thank you,
>Bob
>
>__________________________________________________
>FREE Email for ALL! Sign up at http://www.mail.com
>
>-
>PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
>To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
>the body, not the subject, of your message.
>
-- v Davor Cengija davor <email protected> =================================== "Please allow 30 days for delivery"__________________________________________________ FREE Email for ALL! Sign up at http://www.mail.com
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Am I doing right?"
- Previous message: Jeroen Laarhoven: "[PHPLIB] 302 server response reply results in looping"
- Maybe in reply to: Davor Cengija: "Re: [PHPLIB] oohforms: default CHECKED & radio"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

