Re: [Phplib-users] OOHForm - radio button
Brought to you by:
nhruby,
richardarcher
|
From: Peter T. <pte...@te...> - 2002-10-03 15:12:41
|
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
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: DEDICATED SERVERS only $89!
>Linux or FreeBSD, FREE setup, FAST network. Get your own server
>today at http://www.ServePath.com/indexfm.htm
>_______________________________________________
>Phplib-users mailing list
>Php...@li...
>https://lists.sourceforge.net/lists/listinfo/phplib-users
|