I had the similar problem when I tried to work with
select box allowing multiple selections. I had to use square brackets too.
ex.: <select name="keywords[]" multiple>
...
To reference it in JavaScript I enclosed the name in
single quotes and used it as an index to the elementscollection, as
follows:
variable=document.forms[0].elements['keywords[]'];
This worked. You can experiment with that, I hope that will help...
Also check the following link: http://www.php.net/FAQ.php#7.14
Good luck,
Dmitri
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to pro_php as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_php-$subst('Recip.MemberIDChar')@p2p.wrox.com