Re: PHP & JavaScript

From: Date: Fri, 19 May 2006 15:42:09 +0000
Subject: Re: PHP & JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236495@lists.php.net to get a copy of this message
Jay Blanchard wrote: > [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.... > Shouldn't ID's on xhtml tags be unique? Or is this special because of the array construction? Gr, Koen

« previous php.general (#236495) next »