Here's the code I'm working with:
$I = 1;
while ($I <= $_SESSION[zip_fields]) {
echo "<TR>
<TD ALIGN=CENTER>
#$I
</TD>
<TD ALIGN=CENTER COLSPAN=2>";
$Name = "ot[Zip$I]";
$Value = "${$Name}";
Form_Text($Name,$Value,11,11);
echo "$Value</TD>
<TD ALIGN=CENTER>";
$Name = "ot[Total$I]";
$Value = ${$Name};
Form_Text($Name,$Value,5,20);
echo "</TD>
</TR>
<TR>
<TD COLSPAN=4 BGCOLOR=#AAAAAA>
</TD>
</TR>";
$I++;
}
The Form_Text function just makes a standard form text field. The $Name part is working, but when I fill it out and submit it, it does not refill the value. Other fields outside of this loop are working correctly.
I got the idea of doing it this way from this page:
http://www.php.net/manual/en/language.variables.variable.php
If anyone knows what the hell I'm doing wrong I'd be very appreciative.
Thanks,
Tom