PHP Question
Assume this code:
now, if assuming that fetish is an array with one or more elements, why doesn't the foreach loop work?
UPDATE: I solved the problem. Apparently, there was a problem before the foreach loop that was preventing it from running. I rebuilt the echo statement that built the URL up to the point of the fetish portion, and now it works just fine.
Thanks to everyone who commented.
$fetish = $_GET[fetish];
...
<?php if(sizeof($fetish) > 0)
{
foreach($fetish as $fet)
{?>&fetish[]=<?php echo $fet ?>
<?php }
}
now, if assuming that fetish is an array with one or more elements, why doesn't the foreach loop work?
UPDATE: I solved the problem. Apparently, there was a problem before the foreach loop that was preventing it from running. I rebuilt the echo statement that built the URL up to the point of the fetish portion, and now it works just fine.
Thanks to everyone who commented.
