Page 1 of 1

works great in firefox dont work in IE

Posted: Thu Jun 19, 2008 2:33 pm
by freeAngel_007
Hi I am so angry on Microsoft.... :banghead:

I have an upload file form in html:

Code: Select all

 
<form method="POST" enctype="multipart/form-data" action="upload.php">
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="detailTable">
<tr align="right" >
    <td style="padding-top: 10px;padding-right: 5px;">
 
                <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
                
                <b>Insert file:</b> <input  type="file" name="picturefile" />
    </td>
</tr>
<tr align="right">
    <td style="padding-top: 10px;padding-right: 5px; padding-bottom: 5px;">
        <input type="submit" value="Submit" />
    </td>
</tr>
</form>
</table>
 
the problem is that in IE its not sending anything to PHP server like $_FILE is empty
but in other browsers this works...

:crazy: and this makes me crazy. so thx for any advices

Re: works great in firefox dont work in IE

Posted: Sat Jun 21, 2008 4:57 am
by kaszu
Look at the html, table is inside form, but closing form tag is before table, that's invalid xhtml. Also method in xhtml should be lower case (for valid code).
But that's not the problem since your code works for me with Strict and Transitional doctypes on IE6, IE7, IE8b (used IETester), FF3

OS: Vista 64bit