I'm trying to create a form dynamically and assign form input "line by line" to an array named lab_value() within an html input tag as below:
(form code snippet, not complete):
$lab_value = array();
for($i=1;$i<=$max;$i++)
{
echo("
<tr>
<td>
<input type='text' name='$lab_value[$i]'>
</td>
</tr>
");
echo("$lab_value[$i] <br>");
}
The input that is submitted on the form is not assigned to the array.
echo("$lab_value[$i]"); returns empty.
Any help on getting the array to accept form data from the <input name = > tag would be appreciated.
Thanks
MG