I have a website which displays images from my database.
I echo the images using PHP and have a checkbox echoed below each image.
If the checkbox is ticked, and the form is submitted, the 'action' page will get the image name from the value of the checkbox - the value of the checkbox is the image name.
This is working great.
My code is:
I get my image name using...
$image_name = $fetch['image_name'];
I add the tick box and array below, as such...
(Don't forget, I am echoing all images from database so I need an array to determin which image is selected/ticked)
<input name="image[]" type="checkbox" value="'.$image_name.'" />
This gets the images name so I am able to echo the image name on the 'action' page.
My problem is...
I also need to have another checkbox (or 2) for image sizes (6x4, 7x5) etc.
I am unable to pass the 'value' of the size and the 'value' of the image name using a single checkbox!
Any ideas or advice?