Undefined index: file21
When you look at the "View Page Source", you see these following html sentences:
PHP still complains "Undefined index: file22". For the first 20 files, all work fine but starting file21, it begins complaints. What's the problem. Is there a configuration on how many files are allowed in a session?
<input type="file" name="file21" id="file21" size="80" />
<input type="file" name="file22" id="file22" size="80" />
<input type="file" name="file23" id="file23" size="80" />
No, it's probably a simple syntax error in your PHP, nothing to do with the form mark-up you've shown us.
Hmm, is there anywhere else in your code that says "file22" other than the snippet you showed us?
The better I get at programming, the more I appreciate arrays. Handy dandy things they are.
Thanks each of you responses. I have figure out the resolution: just add the following line to php.ini:
The default is 20. You can see this configuration parameter at the PHP Core section of phpinfo().
Heh...I didn't even notice they were all file-type inputs -- not that I would necessarily have known what the problem was. Glad you figured it out.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)