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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to