<?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>
_________________ M. S. Rakha, Ph.D. Queen's University Canada