RE: [PHP] Some silly Questions

From: Date: Wed, 28 Jun 2000 08:01:15 +0000
Subject: RE: [PHP] Some silly Questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3507@lists.php.net to get a copy of this message
Hi there, > > hi , > i have some questions, > 1. if i have a cookie variable (foo) and a form (post)variable > (foo) and in my script if i use a $foo, i will be able to use > only the form variable is displayed. in this case how to refer > the cookie variable? > Use the HTTP_COOKIE_VARS array (see the manual for details). The form variables are also available via the HTTP_POST_VARS array. [Guess what? There's also a HTTP_GET_VARS array too :) ]. If you want $foo to be the cookie variable instead of the form variable you can make a change to the php.ini file AFAIK. Paul Fotheringham CMCSM University of Glasgow www.cmcsm.ac.uk

« previous php.general (#3507) next »