bflosabre91 Posted June 29, 2007 Share Posted June 29, 2007 i never used cookies before and i want to store a specific font size in a cookie when they click a specific button but im not sure how the syntax for doing so would be. <td><a href="javascript:increaseFontSize();"><img src="../images/fontlargersmall.gif" height="24px" align="top" border="0" /></a> </td> that is the code for the button that when it is clicked, i would like to set the cookie. If anyone can give me a clue on how to set the cookie on the click of the link i would really appreciate it. thanks Link to comment https://forums.phpfreaks.com/topic/57738-noobie-question-on-cookies/ Share on other sites More sharing options...
Lumio Posted June 29, 2007 Share Posted June 29, 2007 <?php setcookie(); // ?>HtML-CODE Read http://www.php.net/setcookie Link to comment https://forums.phpfreaks.com/topic/57738-noobie-question-on-cookies/#findComment-285908 Share on other sites More sharing options...
per1os Posted June 29, 2007 Share Posted June 29, 2007 I am not sure if php can read jscript cookies, but you should be able to use document.cookie with javascript (google javascript set cookies to find out more) Link to comment https://forums.phpfreaks.com/topic/57738-noobie-question-on-cookies/#findComment-285980 Share on other sites More sharing options...
bflosabre91 Posted June 29, 2007 Author Share Posted June 29, 2007 thanks alot for the info guys Link to comment https://forums.phpfreaks.com/topic/57738-noobie-question-on-cookies/#findComment-286000 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.