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
A few questions about deleting/updating/setting cookies
PHP
8
767
December 4, 2011
Problem with setting a cookie
PHP
7
1778
January 23, 2016
PHP cookies
PHP
5
304
August 7, 2010
Cookies with HTML and with IE8
JavaScript
1
1618
February 14, 2011
Storing a cookies when a anchor<a> is clicked
PHP
2
802
December 16, 2010