| 7:04 pm on May 12, 2008 (gmt 0)|
The above code looks ok, the problem may be on submit.php how are you handling the images?
| 7:50 pm on May 12, 2008 (gmt 0)|
You may need to set the MAX_FILE_SIZE attribute in your form.
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
As I recall I could never get file submission to work without that set on the form before the actual file field.
| 8:39 am on May 13, 2008 (gmt 0)|
assuming you have checked on mispelled words:
activate error reporting: error_reporting(E_ALL); (put this on top of your page)
make sure SAFE MODE is off - you cant upload anything via php in safe mode.
| 9:14 am on May 13, 2008 (gmt 0)|
The problem was fixed with the solution gave by Duskrider.
I forgot the hidden MAX_FILE_SIZE field. Now it's working perfectly.
| 4:26 pm on May 13, 2008 (gmt 0)|
Just out of curiosity, what browser and version are you using?
| 5:01 pm on May 13, 2008 (gmt 0)|
I don't remember it so well, but Mozilla 1.7.12 or Firefox 18.104.22.168
| 5:08 pm on May 13, 2008 (gmt 0)|
The only reason I was curious is because it should still show the $_FILES array when you print it out. I haven't seen it where it hasn't before when it was missing that hidden form element. Maybe it's certain versions of FF? It works fine without it for me. Anyway, you should have been getting the corresponding error value [us2.php.net], I'd imagine, instead of having no array at all.
Anyyyway....I'm glad you have yours working. Thanks for the additional information. If I find out more on this topic, I'll be sure to let everyone know :)
| 6:55 am on Jul 3, 2008 (gmt 0)|
The following 2 messages were cut out to new thread by eelixduppy. New thread at: php/3689455.htm [webmasterworld.com]
10:42 am on July 3, 2008 (est -4)