I have a page that will generate a specified number of input boxes. The number of boxes created is stored in the variable $number.
On the next page, I want to store each value entered into EACH input box into a variable. I have created the following code that will grab each value and store it in an array. This works. HOWEVER, when I tried to call the values outside of the FOR statement, they are blank.
How can I store an undermined number of values into an undetermined number of variables and be able to call these values later to write to the database or to the screen?
for ($i = 1; $i <= $number; $i++)
{
$textfield[$i] = $HTTP_POST_VARS['textfield'.$i];
}
echo $textfield[$i];