RE: [PHP-DB] echo printing a cookie

From: Date: Tue, 15 Oct 2002 13:37:12 +0000
Subject: RE: [PHP-DB] echo printing a cookie
Groups: php.db 
Request: Send a blank email to php-db+get-22416@lists.php.net to get a copy of this message
> -----Original Message----- > From: Steve Dodkins [mailto:Steve.Dodkins@ebm-ziehl.co.uk] > Sent: 15 October 2002 14:22 > To: Php-Db (E-mail) > > Hi I'm trying to print the contents of a cookie (php 4.2.3) > the syntax below > is wrong but what should it be? > > if ($_cookie["cookiename"]== TRUE) { > echo"<p>your cookie is" $_COOKIE["cookiename"]"</p>"; > } if (isset($_COOKIE['cookiename'])) { echo "<p>your cookie is {$_COOKIE['cookiename']}</p>"; } Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.db (#22416) next »