I am generating a shopping cart on a site and need to generate a "back button" to pass to the cart. I tried <? echo $PHP_SELF; ?> but it doesn't give the complete URL. the offending site is http://www.heartsparkgifts.com/gallery/chocolatelovers.php
thanks,
<? echo "http://www.heartsparkgifts.com" . $PHP_SELF; ?>
maybe? ;o)
try the $HTTP_POST perhaps as well?
yes, this is currently what im doing. it is less elegant than having php write the entire URL though. How does one implement $HTTP_POST ???
here is the code i tried:
<?php echo $HTTP_HOST . $PHP_SELF ?>
produces:
www.fandelem.com/test.php
hope this helps
($PHP_SELF adds the beginning / )
cheers,
kyle