however it only shows $inv[$key] in the dropdown box, how can I get it to recognize the $inv variable?
code:
Code: Select all
?>
<form method="post" action="HomePIG.php">
<select name='inv'>
<php
foreach ($inv as $key => $shw)
{
echo '<option value=$inv[$key]>$inv$[key]</option>';
}
?>
</select>
</form>