]>
To: "'Ruth Zhai'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 1:44 PM
Subject: RE: [PHP-DB] Global variables, $_GET problem
> Ruth,
>
> your reference to $_GET('var') is close, but as you have seen - no cigar
:)
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 6:45 AM
Subject: Re: [PHP-DB] Global variables, $_GET problem
> On Wednesday 24 July 2002 11:38, Ruth Zhai wrote:
>
> > We just upg
On Wednesday 24 July 2002 11:38, Ruth Zhai wrote:
> We just upgraded our PHP to version 4.2.1. I realized that $var is no
> longer available from www.url.com/myphp.php?var=3 . As instructed in the
> document, we have tried two things:
Good, someone who reads the docs :)
> 1. I tried to use $_
Ruth,
your reference to $_GET('var') is close, but as you have seen - no cigar :)
using the "()" after GET makes it refer to a function, but it is actually an
array which is automatically created, so you need to use
$_GET['var'] (note the square brackets
as for point 2 (register_globals) did yo