Re: Variables

From: Date: Thu, 19 Jun 2008 13:48:50 +0000
Subject: Re: Variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-275591@lists.php.net to get a copy of this message
At 12:23 AM -0400 6/19/08, Robert Cummings wrote:
<?php $GLOBALS['mysql_host'] = $_REQUEST['host']; ?> I've intentionally used request since I don't know if you would do it via $_POST or $_GET. Additionally, one would hope you'd check/filter/process the submitted value before being so careless as to assign it as I've done above. Cheers, Rob.
Rob: I know you know this, but your method would also include COOKIES, which incidentally would take precedence over any same-name-variables provided by POST or GET. I believe, GPC is the acronym. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#275591) next »