Sun Oct 26, 2008 8:23 pm
<?php
setcookie( "myvalue1", "myvalue2", time()+3600, "/", "www.codemiles.com", 0 );
?>
<html>
<head>
<title>Setting and printing a cookie value</title>
</head>
<body>
<?php
if ( isset( $myvalue1 ) )
print "<p>Hello again, your value is $myvalue1</p>";
else
print "<p>Hello you. This may be your first visit</p>";
?>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.