Hi I'm pretty new to PHP I need help with this small form I've made on my page.
I have a single checkbox which is in a loop. I seem to get only a single checkbox value passed. Here's my form and php code:
Form:
<?php if($show_captions) {
$pic_path=$album."/".$caption;
?>
<div class="caption" align="center">
<form name="store" id="str" action="store.php" method="get">
<input type="checkbox" name="pic[]" value="<?php echo $pic_path ?>"/>
</form>
</div>
<?php } ?>
store.php:
<?php
$path=$_GET['pic'];
if(isset($_GET['pic']))
{
foreach($path as $pic){
echo $pic;
}
}
?>