Re: Variables aren't being passed to php page
| From: | Jason Reid | Date: | Sun, 14 Jul 2002 08:54:16 +0000 |
| Subject: | Re: Variables aren't being passed to php page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107596@lists.php.net to get a copy of this message | ||
Check your php version. if its greater then 4.1.0, then you must either
enable 'register_globals' in your php.ini, or use $_GET['var'] or
$_POST['var'] to get data from a form
----- Original Message -----
From: "Mike Heffner" <mikeh@freebsd.org>
To: <php-general@lists.php.net>
Sent: Sunday, July 14, 2002 2:36 AM
Subject: [PHP] Variables aren't being passed to php page
> Hi,
>
> I've recently upgraded from PHP 4.0.4p11 -> PHP 4.2.1, but now there seems
> to be a problem that variables from POST/GET are not being passed to the
> PHP page. For example, with the following file test.php, using the URL
> 'test.php?mid=1' displays 'nope'.
>
> <?
> if (isset($mid))
> echo "$mid";
> else
> echo "nope";
> ?>
>
>
> Is this a known problem, or is this some configuration issue?
>
> Thanks for any help,
>
>
> Mike
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>