[PHP3] checkboxes, php, and javascript. From: Jim Matzdorff (jmatz <email protected>)
Date: 02/29/00

understanding the idea of assigning names as "variable[]" in the html code,
i have a question.

how can i use that notation when i need to use some javascript to
read/change those values themselves.

for instance

<input type="checkbox" name="variable[]">
    (repeated)

<script>
if ( <how do i access that variable now>.checked) ....
   etc.
</script>

you can't do something like "variable[][3]" in javascript, it doesn't like
it obviously. are you stuck with "one" or the "other" type of situation here?

'elp,
--jim
---------------------------------------------------
Life sucks, I lent a guy ten grand to get plastic surgery,
and now I don't know what he looks like.
---------------------------------------------------

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>