Re: [Phplib-users] OOHForm - radio button
Brought to you by:
nhruby,
richardarcher
|
From: Hans-Peter Z. <han...@un...> - 2002-10-04 06:04:46
|
Thanks a lot! I don't use templates yet, but maybe later..
Regards
Hans-Peter
> Here are some code snippets that might help.
> Using both OOHForms and Templates
>
> Cheers,
> Peter
>
> -----------------------
>
> ...
>
> $f1->ae(array("type"=>"radio",
> "name" =>"RButton",
> "value"=>"L")); //this sets the default
>
> ...
> $f1->start("","POST");
>
> $t->set_var(array( "RADIO_1"=>"Text left Button",
> "RADIO_IN_1"=>$f1->ge('RButton', 'L'),
> "RADIO_2"=>"Text right Button",
> "RADIO_IN_2"=>$f1->ge('RButton', 'R'),
> "SUBMITBUTTON"=>$f1->ge('submit1', 'Submit')));
> $t->pparse("out",array("table"));
>
>
> $f1->finish();
>
>
> //$RButton variable returns either "L" or "R"...At 09:24 01-10-2002,
> Hans-Peter Zahno wrote:
> >Dear all,
> >
> >I just started using PHPLib and want to use some input fields
> >of type 'radio' in my forms.
> >Unfortunately I can't find any examples in the documentation
> >on how to define radio buttons.
> >I tried to use it in (more or less) the same way like the 'select'
> >type, but it doesn't work.
> >What would help me is a short sample code on using form elements
> >of type 'radio'.
> >Thanks for any help.
> >Hans-Peter
> >
|