[SOLVED] Submits in FF, and not IE
Posted: Thu Dec 15, 2005 9:21 am
I have a multi-image upload that is working in firefox, but won't in IE... figures.
I was wondering if anyone had an idea about that... i thought that maybe the submit button wasn't set to submit or something, or that the name wasn't working, but I think it looks good. Here's the code:
Any ideas?
I was wondering if anyone had an idea about that... i thought that maybe the submit button wasn't set to submit or something, or that the name wasn't working, but I think it looks good. Here's the code:
Code: Select all
<?
$link = mysql_connect("localhost", "", "")
or die("Could not connect: " . mysql_error());
mysql_select_db (_db) or die("db not connected: " . mysql_error());
if(isset( $Submit ))
{
$ID = $_COOKIE["ID02"];
$path = "/Imi/Mem_Img/".$ID;
foreach( $HTTP_POST_FILES as $aFile )
{
if ($aFile['type'] == "image/gif" || $aFile['type'] == "image/jpeg")
{
copy ($aFile['tmp_name'], $path."/".$aFile['name'])
or die ("Could not copy");
echo "";
}
}
exit;
}
if(isset( $Submit ))
{
$ID = $_COOKIE["ID02"];
$path = "http://www.domain.com/Imi/Mem_Img/".$ID;
foreach( $HTTP_POST_FILES as $aFile )
{
if ($aFile['type'] == "image/gif" || $aFile['type'] == "image/jpeg")
{
copy ($aFile['tmp_name'], $path."/".$aFile['name'])
or die ("Could not copy");
echo "";
}
}
exit;
}
?>
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="file" name="imagefile1" class="text">
<input type="file" name="imagefile2" class="text">
<input type="file" name="imagefile3" class="text">
<input type="file" name="imagefile4" class="text">
<input type="file" name="imagefile5" class="text">
<input type="submit" name="Submit" value="Submit" class="text"></td></tr>
</form>