works great in firefox dont work in IE

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
freeAngel_007
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2008 12:23 pm

works great in firefox dont work in IE

Post 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
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: works great in firefox dont work in IE

Post 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
Post Reply