SitePoint Forums | Web Development & Design Community
Set cookie by clicking on a link
PHP
stymiee
March 30, 2007, 1:35pm
2
You can’t. PHP runs on the server, not in the browser. You need to use JavaScript for this.
show post in topic
Related topics
Topic
Replies
Views
Activity
Storing a cookies when a anchor<a> is clicked
PHP
2
873
December 16, 2010
Setting a cookie when user clicks a link and prevent default
JavaScript
3
1197
May 30, 2011
Echo html on <a> click and store echoed html in cookie
PHP
4
802
February 13, 2011
Problem Setting Cookies
PHP
1
478
April 7, 2012
SetCookie works on local not live
PHP
0
688
August 2, 2017