If you use register_globals
or try and extract()
these variables, they are invalid, as PHP variables cannot start with a number (or be a number). You need to access the $_POST
superglobal. A better approach would be to use an array:
echo "<input type=\"text\" size=\"15\" name='text[$count]'/>";
Then access as $_POST['text'][0]
etc. Now all of your text inputs are grouped under the $_POST['text']
and you can group checkboxes etc. as well. You could then extract()
these (not recommended).