Regarding this well-known quote, often attributed to Sjaakie Helderhorst's
famous "Wed, 9 Jun 2004 13:35:46 +0200" speech:
[color=blue]
> "Chris Hope" <chris@electrictoolbox.com> schreef in bericht
> news:1086777890_24934@news.athenanews.com...[color=green]
>> Marian Heddesheimer wrote:
>>[color=darkred]
>>> or better yet, always user $_GET and $_POST to access your form
>>> variables.[/color]
>>
>> That's good advice. The good thing about using $_GET['foo'] and
>> $_POST['foo'] etc rather than enabling register globals and using $foo, is
>> that it ensures greater portability of your scripts. You may well be able
>> to register globals on your development box but this may not be the case
>> with your hosting provider.
>>
>> --
>> Chris Hope
>> The Electric Toolbox -
http://www.electrictoolbox.com/[/color]
>
> Thank you both for your help!
> I usually use $_GET and $_POST, but this is a site I 'adopted', so I
> encounter some difficulties.
> Thanks again![/color]
For now, you can add code like:
<?php
$INPUTS = array_merge($_GET, $_POST, $_COOKIE);
// Eliminate any of the $_ vars you don't need.
foreach ($_INPUTS as $currentInput => $thisInput) {
${$currentInput} = $thisInput;
}
?>
(UNTESTED! TRY IT FIRST!)
It's a band-aid procedure, and a bit insecure, but it should tide you over
for now.
--
-- Rudy Fleminger
--
sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
--
http://www.pixelsaredead.com