add to basket
| From: | Wilbert Enserink | Date: | Mon, 08 Jul 2002 09:30:09 +0000 |
| Subject: | add to basket | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-106052@lists.php.net to get a copy of this message | ||
Hi all,
What's the best way to implement functions like 'add to basket' or 'add to
wishlist' and so on.
I mean: you are on a page with detail information about a product. If the user clicks the link for
'add to basket' I have to perform a piece of script and then go back to the detail page of
the given product. But clicking on this link leads me away form the page...
I was thinking of using $HTTP_REFERER i the "ad_to_basket.php" page in order to retrieve
the last url, but now I don't know how to go back to this detailpage, is there a php command
for this, or is my approach totally wrong??
Any comments would be appreciated,
regards.
Wilbert Enserink
-------------------------
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
info@pdd.nl
-------------------------