Re: Set session variable if link is clicked, do not want to use GET

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux