Try this for a generic fix if it is the globals issue:
Place this somewhere to set to TRUE or FALSE when needed
$GLOBAL_FIX = TRUE;
use an include on every script:
if($GLOBAL_VARS_FIX) {
if( phpversion() >= '4.2.0' ) {
extract($_POST);
extract($_GET);
extract($_SERVER);
riginal Message-
From: Kaushan [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables not working!
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file cont
On 19 Jan 2004 at 21:43, Kaushan wrote:
> Hi,
>
> I am new to PHP scripting and struggling with the following problem.
>
> I have two files, an HTML file and a PHP file.
> HTML file contains a form with one text field and a submit button.
> When a user pressed the submit button, it calls the php
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file contains a form with one text field and a submit button.
When a user pressed the submit button, it calls the php file ().
What the php file does is just echo back the
essage-
> From: Nathan [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2002 02:34
> To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Variables not working
>
>
> Before you get carried away with registering globals, try echoing:
> $_SERVER["
; -Original Message-
> From: Nathan [mailto:[EMAIL PROTECTED]]
> Sent: 27 April 2002 02:34
> To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Variables not working
>
>
> Before you get carried away with registering globals, try echoing:
>
lt;[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 10:29 PM
Subject: RE: [PHP] Variables not working
> Sorry let me rephrase that ' can anyone point me to good docs about
passing
> variables between html and php' please?
>
> Cheers
>
> baldey_uk
>
> -Ori
ubject: Re: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER["HTTP_USER_AGENT"];
Or, for versions prior to 4.1.X, change that to:
$HTTP_SERVER_VARS["HTTP_USER_AGENT"];
Registering globals is insecure unless you ar
: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER["HTTP_USER_AGENT"];
Or, for versions prior to 4.1.X, change that to:
$HTTP_SERVER_VARS["HTTP_USER_AGENT"];
Registering globals is insecure unless you are VERY careful abou
you have is
defined...
Cheers,
# Nathan
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "baldey_uk" <>
Cc: <>
Sent: Friday, April 26, 2002 6:41 PM
Subject: Re: [PHP] Variables not working
Turn on register_globals in your php.ini fil
Turn on register_globals in your php.ini file.
On Sat, 27 Apr 2002, baldey_uk wrote:
> Hello all, im not sure if its my installation or if on doing something wrong
> but i cant seem to use any of the variables from forms that i PUT to. Or any
> full stop! even
>
>
>
> doesnt out put anything. A
Hello all, im not sure if its my installation or if on doing something wrong
but i cant seem to use any of the variables from forms that i PUT to. Or any
full stop! even
doesnt out put anything. Anyone seen this before?
thanks in advance for your help
Cheers From
baldey_uk
--
PHP General
12 matches
Mail list logo