Re: [PHP] register globals changed to off, script breaks

2004-09-30 Thread Greg Donald
On Thu, 30 Sep 2004 14:33:30 -0400, Kevin Coyner <[EMAIL PROTECTED]> wrote: > What does work is: > > $cid = $_GET($varname); > > But that is only for when a single variable is passed, not when a bunch > of them get passed and need to be put into an array. $_GET is already an array, why reassign

[PHP] register globals changed to off, script breaks

2004-09-30 Thread Kevin Coyner
I had a couple pages that had used a few 'a href' links to create a URL like this: http://mydomain.com/profile.php?cid=6 When you clicked the link, it went to the profile.php page, which had the following code snippet: foreach($_GET as $varname => $value) $formVars[$varname] = trim($value)