Help, My php file upload works great on mozilla, but is not working correctly on Internet Explorer if i upload a image its getting to the server but on the webpage and i refresh my page its there, but when i delete the image it hold the the space on the page and and all is display is a red X. It uploads correctly and deletes but not until i refresh the page, will it disappear.
if(array_key_exists('delet
eImage', $_POST)) {
if ($_POST['deleteImage'] == "Delete Map") {
unlink('/Inetpub/wwwroot/h
omes/html/
images/bro
wse/maps/'
. $ID . '.jpg');
unlink('/Inetpub/wwwroot/h
omes/html/
images/bro
wse/maps/'
. $ID . '-TH.jpg');
} elseif ($_POST['deleteImage'] == "Delete Logo") {
unlink('/Inetpub/wwwroot/h
omes/html/
images/bro
wse/logos/
'. $ID . '.jpg');
unlink('/Inetpub/wwwroot/h
omes/html/
images/bro
wse/logos/
'. $ID . '-TH.jpg');
} elseif ($_POST['deleteImage'] == "Delete Features List") {
$query = "SELECT * from psh_communities WHERE ID = $ID";
$result = mysql_query($query);
$row = mysql_fetch_row ($result);
$query = "UPDATE psh_communities SET features = 'NULL' WHERE ID = $ID";
$result = mysql_query($query);
unlink('/Inetpub/wwwroot/h
omes/html/
browse/fea
tures/'. $row[10]);
} elseif ($_POST['deleteImage'] == "Delete Brochure") {
$query = "SELECT * from psh_communities WHERE ID = $ID";
$result = mysql_query($query);
$row = mysql_fetch_row ($result);
$query = "UPDATE psh_communities SET brochure = 'NULL' WHERE ID = $ID";
$result = mysql_query($query);
unlink('/Inetpub/wwwroot/h
omes/html/
browse/bro
chures/'. $row[8]);
} elseif ($_POST['deleteImage'] == "Delete Banner") {
unlink('/Inetpub/wwwroot/h
omes/html/
images/bro
wse/banner
s/'. $ID . '.jpg');
}
}
Source of Maps
<td align="right" valign="top">Location/Map:
</td>
<td align="left" valign="top"><img src='
http://homes.pacificscene.com/images/browse/maps/14.jpg' /><input type='submit' name='deleteImage' value='Delete Map' /><br /><input name='newMap' type='file' size='40' /><input type='submit' name='uploadNewMap' value='Upload' /></td>
</tr>
If someone answers this question they can have the points for both, since no one will look at my previous question.