Hello Everybody,
I am trying to output multiple values from check boxes on a page they are actually images.
So i am using this code to generate the images on the page with the check box
From what i have been reading i should be using interest[] to put them into an array...
echo '<a href="',$images_dir.$file,'" class="photo-link " title="'.$title.'" rel="lightbox[custom]"><span><input type="checkbox" name="interest[]" value="'.$title.'"></span><img src="',$thumbnail_image,'" /></a>';
So on my processing file i am using this to pull the values from the form
if( isset( $_POST['interest'] ) && is_array($_POST['interest']) ) {
foreach( $_POST['interest'] as $value ) {
//each $value is a selected value from the form
}
}
Then i am using this to output the value into the email that it generates
$Body .= "Pictures Selected: ";
$Body .= $value;
This only send 1 value in the email, i need it to send all of the boxes that i am checking...
Thanks for any help anyone can give...