i just posted a corrected version... here it is - works fine for me:
<?php
if (isset($track)) {
print "data submitted<BR><BR>";
foreach ($InquiryNumber as $key => $value) {
print "$key: $value <BR>";
}
}
else {
if (!$startVal) {
$startVal = 0;
}
if (isset($moreOptions)) {
$startVal += 5;
}
print "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">";
for ($i = 1; $i <= $startVal+5; $i++) {
print "$i" . ". <INPUT TYPE=\"TEXT\" NAME=\"InquiryNumber[" ."$i" . "]\" VALUE=\"$InquiryNumber[$i]\"><BR>";
}
print "
<INPUT TYPE=\"hidden\" NAME=\"startVal\" VALUE=\"$startVal\">
<INPUT TYPE=\"SUBMIT\" NAME=\"moreOptions\" VALUE=\"More Options\"><BR>
<INPUT TYPE=\"SUBMIT\" NAME=\"track\" VALUE=\"Track\">
</FORM>";
}
?>
i still have one problem here i ran into a bunch of times already - why cant i pass a value of a variable thet is "0"?
$startVal=0;
print "<INPUT ... VALUE=\"$startVal\">";
results in an http output like this:
<INPUT ... VALUE="">
instead of this:
<INPUT ... VALUE="0">
why? is it NULL and not 0? what can i do about it?