works in mozilla not in explorer

User 1906598 Photo


Guest
1 post

Can any one see why this would not work in explorer
index.php invokes pruchasepop.php you can see it in action at http://www.homeportonline.com/store/antiquesigns/

<!-- index.html -->
<?php
// initialize variables
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Antique Signs</title>
<link rel="SHORTCUT ICON" href="http://www.homeportonline.com/images/HM.ICO" />
</head>
<body>
<center><img src="http://www.homeportonline.com/images/tagline.jpg" style="border: 0px solid ; width: 700px; height: 153px;" alt="Homeport Online" /></center><br />
<center><big><big><big>Antique Signs</big></big></big></center><br />
<form action="http://www.homeportonline.com/store/purhcasepop.php" method="post">
<?php
$fp = fopen("$DOCUMENT_ROOT/store/webinv.txt", "r");
$i=0;
while (!feof($fp)) {
$category[$i] = fgets($fp,999);
$sku[$i] = fgets($fp,999);
$description[$i] = fgets($fp,999);
$price[$i] = fgets($fp,999);
$size[$i] = fgets($fp,999);
$color[$i] = fgets($fp,999);
$i = ++$i;
}
echo '<table width="700" border="1" align="center">';
for ($l=0; $l< ceil($i/6); $l++) {
echo '<tr>'."\n";
echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l].'.gif" type="image" name="sku" value="'.$sku[6*$l].'" width="100" height="100" ></td>'."\n";
echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l+1].'.gif" type="image" name="sku" value="'.$sku[6*$l+1].'" width="100" height="100"></td>'."\n";
echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l+2].'.gif" type="image" name="sku" value="'.$sku[6*$l+2].'" width="100" height="100"></td>'."\n";
echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l+3].'.gif" type="image" name="sku" value="'.$sku[6*$l+3].'" width="100" height="100"></td>'."\n";
echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l+4].'.gif" type="image" name="sku" value="'.$sku[6*$l+4].'" width="100" height="100"></td>'."\n";
if (strlen($sku[6*$l+5]) >3) echo'<td width="105"><input src="http://www.homeportonline.com/images/antiquesigns/'.$sku[6*$l+5].'.gif" type="image" name="sku" value="'.$sku[6*$l+5].'"width="100" height="100"></td>'."\n";
echo '</tr>'."\n";
}
echo '</table>'."\n";
fclose($fp);
?>
</form>
<?php include '/home/homepor1/public_html/footer.txt';?>
</body>
</html>


<--purhcasepop.php-->
<?php
// initialize variables
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
$sku = $_POST['sku'];
?>
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Purchase Item</title>
<link rel="SHORTCUT ICON" href="http://www.homeportonline.com/images/HM.ICO">
</head>
<body>
<?php
// look up the Item
$fp = fopen("$DOCUMENT_ROOT/store/webinv.txt", "r");

while (!feof($fp)) {
$category = fgets($fp,999);
$it = fgets($fp,999);
$description = fgets($fp,999);
$price = fgets($fp,999);
$size = fgets($fp,999);
$color = fgets($fp,999);
if(substr($it,0,strlen($sku))==substr($sku,0,strlen($sku))) {
break;
fclose($fp);
}
}
fclose($fp);

echo '<center>';
echo '<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">'."\n";
echo '<table border="1" align="center">'."\n";
echo '<tr BGCOLOR="#00FFFF">'."\n";
echo '<td><img style="border: 0px solid ; width: 300px;" alt="" src="http://www.homeportonline.com/images/antiquesigns/'.$sku.'.gif"></td>'."\n";
echo '</tr>'."\n";
echo '<tr BGCOLOR="#00FFFF">'."\n";
echo '<td align="center"><b>'.$description.'</b></td>'."\n";
echo '</tr>'."\n";
echo '<tr BGCOLOR="#00FFFF">'."\n";
echo '<td align="center"><b>'.$price.'</b></td>'."\n";
echo '</tr>'."\n";

echo '</table></form>';
echo '</center>';
?>

<!-- Go Back One Page -->
<center><input type=button value="Return Previous Page" onClick="history.go(-1)"></center> <!-- Go Back One Page -->
</body>
</html>
User 629005 Photo


Ambassador
2,174 posts

edited by poster...
Living the dream, stocking the cream :D

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.