parsing checkbox array without [] and selecting all boxes
| From: | olinux | Date: | Mon, 09 Jul 2001 23:43:18 +0000 |
| Subject: | parsing checkbox array without [] and selecting all boxes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10197@lists.php.net to get a copy of this message | ||
Hey all,
The end result of all of this should be similar to an online email client
like hotmal, or yahoo where you can select a number of messages to be
deleted.
I have a form that when generated, the html looks similar to this:
===================================
<input type="checkbox" name="broker" value="1">
<input type="checkbox" name="broker" value="2">
<input type="checkbox" name="broker" value="3">
<input type="checkbox" name="broker" value="4">
<input type="checkbox" name="broker" value="5">
<input type=button value="Check All"
onClick="this.value=check(this.form.broker)">
===================================
I am trying to create a script that will delete each checked box. I can get
this script to work by adding '[]' to 'broker' The reason for each name
being the same and not using the '[]' is because I want to be able to use a
javascript that selects all boxes. Is there a way to do this. Or better yet,
does anyone have a jscript that will work with the [] characters?
Thanks
olinux
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com