Hey All.. Having trouble with Multidimentional arrays..
Here is my code:
echo "<input type='text' name='productname[$j]' value='$_POST[$productname][$j]'>";
I am creating a form where the user can select how many rows, $j, that they can enter. However, when I load the page the correct number of rows show up $j, but the value in each row is not "" but instead [$j], (eg [1]) so it does not appear that the multidimentional array is being picked up.
Also, when the name is an array is there anything special that is needed to pick it up in the form post.. ie on the script that the form runs is it just $productname[$j] ? or do I have to extract something from a $_POST or from something else?
Thanks