note 35314 deleted from function.setcookie by vincent

From: Date: Wed, 27 Aug 2003 12:00:45 +0000
Subject: note 35314 deleted from function.setcookie by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55171@lists.php.net to get a copy of this message
Note Submitter: gannon ---- /* an easy way to set a cookie from a form */ setcookie("login_user","$un",time()+3600); setcookie("login_pass","$pw",time()+3600); /* what most people think is they have to echo the varyable, in this case, the varyable is $un and $pw, you should, you have to echo the name, in this case its login_user and login_pass, but you have to echo it as a varyable for it to work */ echo ("$login_user"); /* thats the example, it works, that i made the same mistake, ita taken me 2 month to learn that, lol, slow learner :) */

« previous php.notes (#55171) next »