Re: Set session variable if link is clicked, do not want to use GET
| From: | Leif Gregory | Date: | Tue, 05 Apr 2005 04:03:53 +0000 |
| Subject: | Re: Set session variable if link is clicked, do not want to use GET | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212238@lists.php.net to get a copy of this message | ||
Hello Kent,
Monday, April 4, 2005, 6:21:41 PM, you wrote:
K> It would have been easy if i would have used a normal FORM and
K> would have had a button called "Add to cart". But i would like it
K> to be in url-style or using some <img ..> which i understand that
K> the BUTTON item does not support (or am i wrong?).
Button images are fine:
http://www.mompswebdesign.com/html/button_tag.html
(just picked that
one at random).
Another option is to set a unique SESSION variable each time they
visit, and that unique variable is only good during that session. You
pass that variable in the GET request and then match it on the
following page. If they don't match then you know they bookmarked it
or fudged the GET request.
Cheers,
Leif Gregory
--
TB Lists Moderator (and fellow registered end-user)
PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F
Web Site <http://www.PCWize.com>