Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

[PHP3] JavaScript and PHP using array[] form elements. From: Cameron Just (ccjust <email protected>)
Date: 08/25/99

Hi,

I am trying to have a button which sets all checkboxes on a form.
Each checkbox is defined like this.

<input name="mlist[]" type="checkbox" value="<? echo $mid; ?>">

Now in my javascript function I get errors when I try to do this.

document.form.mlist[].checked = "False"

it doesn't seem to like the [] in the variable name.

Any ideas how to fix this?

*************************************************************************
Cameron Just (C.Just <email protected>)

Web Development Unit
Information Technology Services
University of Queensland, St Lucia

(07) 3365 1598
*************************************************************************

-- 
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>