File Upload - various problems
Posted: Thu Aug 02, 2012 2:32 pm
Hi,
Thanks for tutorials find them a great pace and full of useful stuff. however having some problems with the file upload tutorial. I don't think it is down to my code. I had put in all of the if(isset($_FILES ........... move_uploaded_file etc etc etc. However although the form displays fine, everytime I pressed the submit button, the browser went to an 'Internet Explorer cannot display this page' error. To try and see where it was going wrong I stripped code back and just did a print_r($_FILES) in the php section at top of page to check it was getting there but same error (also occurs in Chrome). I then got rid of the PHP section altogether and error continued. Therefore it seems as soon as I put an input with type file it fails on my computer.
If I do the same thing using text inputs and then use a print_r($_POST) this works fine so the problem seems to be around the file input.
Any help would be great. I am a teacher and trying to learn php for use in school.
Thanks
Thanks for tutorials find them a great pace and full of useful stuff. however having some problems with the file upload tutorial. I don't think it is down to my code. I had put in all of the if(isset($_FILES ........... move_uploaded_file etc etc etc. However although the form displays fine, everytime I pressed the submit button, the browser went to an 'Internet Explorer cannot display this page' error. To try and see where it was going wrong I stripped code back and just did a print_r($_FILES) in the php section at top of page to check it was getting there but same error (also occurs in Chrome). I then got rid of the PHP section altogether and error continued. Therefore it seems as soon as I put an input with type file it fails on my computer.
If I do the same thing using text inputs and then use a print_r($_POST) this works fine so the problem seems to be around the file input.
Any help would be great. I am a teacher and trying to learn php for use in school.
Thanks