[PHP] Variables aren't being passed to php page

2002-07-14 Thread Mike Heffner

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




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Reid

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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




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




RE: [PHP] Variables aren't being passed to php page

2002-07-14 Thread John Holmes

 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'.

Do you always upgrade programs without reading to see what changes have
been made? If so, I have this update program that I'll send you...just
run it for me, okay?

Check your register_globals setting, like the others said, and read the
changelog for your new installation of PHP.

---John Holmes...


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




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Wong

On Sunday 14 July 2002 21:53, John Holmes wrote:
  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'.

This list gets at least one question a day on this subject ...

 Do you always upgrade programs without reading to see what changes have
 been made? 

... and that's because people don't read up on what they're upgrading to.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Don't drop acid, take it pass-fail!
-- Bryan Michael Wendt
*/


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




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson

Please read this:

  http://www.php.net/manual/en/language.variables.external.php

Regards,
Philip Olson

On Sun, 14 Jul 2002, Mike Heffner wrote:

 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
 


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




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson

   PHP page. For example, with the following file test.php, using the URL
   'test.php?mid=1' displays 'nope'.
 
 This list gets at least one question a day on this subject ...

Please refer to the manual when this happens, specifically:

  http://www.php.net/manual/en/language.variables.external.php

Regards,
Philip Olson


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




Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Peter

I totally agree. No offence to all the ppl who have asked, but didn't it say
on the download page that there had been major changes to the way variables
are used??


John Holmes [EMAIL PROTECTED] wrote in message
000a01c22b3d$e4755790$b402a8c0@mango">news:000a01c22b3d$e4755790$b402a8c0@mango...
  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'.

 Do you always upgrade programs without reading to see what changes have
 been made? If so, I have this update program that I'll send you...just
 run it for me, okay?

 Check your register_globals setting, like the others said, and read the
 changelog for your new installation of PHP.

 ---John Holmes...




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