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);
It is most likely globals. Access the variables by...
echo $_GET['fname'];
or $_POST['fname']; if you are using post which it doesn't appear you do.
Larry
PS it is adviseable to leave globals alone in php.ini since it is set that
way for security concerns.
-Original Message-
From: Kau
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
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
e VERY careful about how every
variable 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
t how every
variable 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_glo
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
10 matches
Mail list logo