I have a form that is generated by PHP according to a certain number of elements in a list. It kind of works like this:
<form action="do_something.php" method="post">
for ($i=0; $i < $elements; $i++) {
echo "<input type = \"text\" name = \"text_$i\">";
}
// Submit button, etc. goes here
</form>
If you can see where I'm going with this, you can probably tell what's next. If $elements is 5 there will be 5 text boxes, if $elements is 500 there will be 500 text boxes.
The question is how do I retrieve each of the form values when I get to do_something.php.
I am wondering if there is something similar to what Java uses for classes (forName), or if I should devise a better way of creating the forms.
Thanks,
Aksival