Im having trouble getting information from a form. Basicly what Im doing is, im getting information from a mysql database then it auto generates html form checkmarks and gets a image name from the records then palces it next to the check mark.
There could be from 1-whatever checkmarks generated. I want to beable to get the value of any checkmarks checked and bebale to throw them into a database
basicly heres my snipplet
...Sql Statement
...While statement
<input type="checkbox" name="<? echo $getphotoname2[0]; ?>" value="<? echo $getphotoname; ?>" id="images">
example:
[ ] akerdarrell.jpg
[ ] albertomartinez.jpg
[ ] alexandercarl.jpg
[X] allenkent.jpg
[ ] andersondale.jpg
[ ] angeldsalazar.jpg
[ ] avilajason.jpg
[X] barlaucarrie.jpg
all the jpg names are pulled form the database, now if I hit submit how can I get the values for only allenkent.jpg & barlaucarrie.jpg. Basicly any checked checkmark. the text will always be diffrent