Works fine on IE and Not on FF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
egturnkey
Forum Commoner
Posts: 34
Joined: Sun Jul 26, 2009 7:35 pm

Works fine on IE and Not on FF

Post by egturnkey »

Hello friends,

I've simple cart script where a button once visitor click on it,it send the item to the cart

It works fine on IE and not working on FF due to something called append_cookie

here is the code

Code: Select all

 
<?
} else if ($productrow['type'] == 0 && (!$isMember && !$isAdmin)) {
echo "<b>Member Download Only</b>";
} else if ($productrow['type'] == 1 || $productrow['type'] == 2) {
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\")'>";
echo "<img src='$addtocart_button' border=0>";
echo "</a>";
echo "<a href='#' onclick='append_cookie(\"cartcontent\", \"".$productrow['productID']."\", \"\");self.location.replace(\"".FILE_INDEX."?action=checkout\")'>";
echo "<img src='$buy_button' border=0>";
echo "</a>";
}
} else {
echo "<img src='$na_button' border=0>";
}
?>
 
egturnkey
Forum Commoner
Posts: 34
Joined: Sun Jul 26, 2009 7:35 pm

Re: Works fine on IE and Not on FF

Post by egturnkey »

i found the error using firefox error viewer

Image

but i don't know how to define it :banghead:

here is the js file also may helps

Code: Select all

http://www.manalnor.com/misc.js
thanks
Post Reply