Re: [PHP] Cookies and Variables

2001-11-20 Thread Mike Eheler
$HTTP_COOKIE_VARS['someWord']; $HTTP_GET_VARS['someWord']; :P Mike Richard S. Crawford wrote: > Consider this code, in page1.php: > > setcookie("someWord","I am a cookie"); > ?> > > ...and this code, in page2.php: > > setcookie("someWord",$someWord); > print ("someWor

[PHP] Cookies and Variables

2001-11-20 Thread Richard S. Crawford
Consider this code, in page1.php: ...and this code, in page2.php: Click here< /a >"); ?> (In the actual code, the value of $someWord is passed via POST through a form, but the principle is the same.) The first time I load page2.php, the output should be: someWord says: I am a cook