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 Quote Link to comment 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 Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
bflosabre91 Posted June 29, 2007 Author Share Posted June 29, 2007 thanks alot for the info guys Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.