Hi all - I am having something odd happen with two PHP pages. On the
first page, I have the following code:
If ($ErrorMsg == '')
echo $Quantity. " added to your cart. Continue shopping or <a
href="cart.php?FromScreen=" . $ScreenToRedisplay .""> go to
echo $ErrorMsg; ?> ">
This page POSTs to a second page, which contains this code.
$ItemMessageText = $_POST["ItemMessageText"];
When $ErrorMsg is blank, the value of ItemMessageText on the second page
3 added to your cart. Continue shopping or <a href
=\"cart.php?FromScreen=/1dev/adult.php\"> go to cart.</a>
Notice that the quotes surrounding the name of the hyperlnk have been
escaped - there is a \ prior to the quotes. I have no idea why this is
happening and it causes the link to fail
To make it more odd, the problem happens when the script is run on a
GoDaddy server, but works fine (quotes are not escaped) when run on
ZendServer on an IBM i box
Kleinman Associates, Inc.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.