I can't figure out how to get this piece of code working right.
What it should be doing is if the foreach comes across "BLANK" to not include it. How do I get it to do that? Next doesn't seem to work.
PHP:
foreach ($func_country_array as $key => $value)
{
if (in_array("BLANK",$key))
{
next($func_country_array);
}
$disp_value = (strtoupper($key));
echo "<option value='".$key."'";
if ($_POST['location'])
{
if (in_array($key,$_POST['location']))
{
echo "selected='selected'";
}
}
echo ">".$disp_value."</option>
";
}
What it should be doing is if the foreach comes across "BLANK" to not include it. How do I get it to do that? Next doesn't seem to work.
















