RE: [PHP] PHP & JavaScript
| From: | Jay Blanchard | Date: | Fri, 19 May 2006 15:20:22 +0000 |
| Subject: | RE: [PHP] PHP & JavaScript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236491@lists.php.net to get a copy of this message | ||
[snip]
http://us2.php.net/variables.external
[/snip]
BINGO! We have a winner!
It can be as simple as adding an id to each checkbox;
<input type="checkbox" id="list37" name="list37[]"
value="4" />
By doing this I did not have to change the function or the function
calls. JS recognizes the boxes by id, PHP recognizes the array.
There were some other more complex solutions listed.....but I believe in
KISS....