|Upload button not working in IE |
Well I'm pretty new to php so this might be a stupid question. I'm making a very simple upload form, it works fine in firefox, but in Internet Explorer there's some weird issue where the upload button won't press. You have to actually click in the text box and hit enter. I have no idea how to even attempt to fix it, if it were up to me I wouldn't bother at all with IE, but some misguided souls still use it and aren't gonna stop. Is there some extra code I'd need for IE? I tried googling it, but I find topics for other issues.
If this is happening when loading the file on your local machine (as opposed to an online version) check that you have said YES to the message (that appears just under the address bar) that says:
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer.
Click here for options..."
Welcome aboard theturtlemoves!
|some misguided souls still use it |
Actually, most users use IE, I think FF is only approaching something like 20%. So yeah, it's a thorn all right, but shouldn't be a problem with this issue.
Verify a couple things:
1. Yes, this problem exists online, see previous post.
2. Your form has enctype="multipart/form-data"
3. The page it's on validates [validator.w3.org].
Then post some relevant code here, not the whole page, just the form. Be sure to remove site-specific references, see TOS [webmasterworld.com].
Yeah I know but its actually growing. :D More people are moving towards firefox which makes me happy. It would also make me happy if IE just fixed all the bugs >_<
heres my form:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
<label for="file"> Select a file:</label> <input type="file" name="userfile" id="file">
Yeah it verifys and the "multipart/form-data" is there, and it is online, I tried it on both my computers and had a few friends try as well. I wanted to check if it was just my settings or not.
I don't think its IE's restrictions, I don't get any error messages and when I click into the text box and hit enter the file does upload.
Thanks for the welcome and the help guys :)
|when I click into the text box and hit enter the file does upload |
|CWI Tech Guy|
I concur, that button likely is lacking a function so it does nothing.