Re: Javascript/PHP
| From: | Brian 'Bex' Huff | Date: | Thu, 22 Aug 2002 15:17:56 +0000 |
| Subject: | Re: Javascript/PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15446@lists.php.net to get a copy of this message | ||
document.myform.elements["somename[]"]
unless you're having a different problem than Im thinking of...
--
Brian 'Bex' Huff
bex@stellent.com
Phone: 952-903-2023
Fax: 952-829-5424
> I have a javascript function that I am passing a group of checkboxes
> to. The purpose of the js is to check/uncheck all of the boxes for
> various operations to be performed on all of them at the same time.
> That said, the function used to work perfectly when the name of the
> checkbox group was as simple as:
>
> <input type="checkbox" name="somename"...
>
> now I am using the php method of:
>
> <input type="checkbox" name="somename[]"...
>
> the js does not like "somename[]" being passed in as a parameter.
> Any ideas as to how to pass that to the js correctly?
>
> Thanx, Kit