I have a form with a textfield which is dynamically written depending on the amount of variables needed.
An example:
<form name="test" method="post" action="test.php">
<?
$number = 0;
while ($number >= 10) { ?>
<input type="text" value="test <?= $number?>" name="test_<?= $number ?>">
<? $number++; ?>
<? } ?>
<input type="submit">
</form>
How can I read the variables I get on test.php from this form dynamically?
If I refer to $test_$nr and $nr = 1 it doesn't grap the $test_1 variable...