Re: [Phplib-users] When [] in OOHForm element, cannot use javascript
Brought to you by:
nhruby,
richardarcher
|
From: Peter T. <pte...@te...> - 2003-07-06 19:57:37
|
Try this:
$f->add_element(array("type"=>"checkbox",
"name"=>"test",
"multiple"=>1));
The 'multiple' makes that 'name' can be accessed as an array. No need to
use the brackets [].
Peter
A t 00:44 06-07-2003, Ernest Beinrohr wrote:
>Hi, I am using ooh forms checkbox elements. It's a multiline same-named
>checkbox. I had to use for it's name something like "name"=>"test[]", so
>that PHP recognizes it as multiple value.
>
>But, I cannot access that element from javascript. Until now I used,
>document.formname.element[i] , but I cannot do this with the brackets in
>element name. Does anyone has a solution ?
>
>--
>Ernest Beinrohr, OERNii
>eAdmin @ AxonPro.sk, http://www.AxonPro.sk
>+421-2-62410360, +421-903-482603
>HomePage: http://www.OERNii.sk/
>-----
> "Be liberal in what you accept,and conservative in what you send."
> -- Postel
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>_______________________________________________
>Phplib-users mailing list
>Php...@li...
>https://lists.sourceforge.net/lists/listinfo/phplib-users
|