Re: [PHP] PHP_SELF syntax

2003-02-24 Thread Justin French
on 24/02/03 11:42 AM, Jason Lange ([EMAIL PROTECTED]) wrote: > What you might try is removing the single-quotes from around PHP_SELF. > > Before: $_SERVER['PHP_SELF'] > After: $_SERVER[PHP_SELF] > > Another note: as far as I can tell you do not need the braces ({}) to > enclose a variable withi

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread Ernest E Vogelsinger
At 01:42 24.02.2003, Jason Lange spoke out and said: [snip] >What you might try is removing the single-quotes from around PHP_SELF. > >Before: $_SERVER['PHP_SELF'] >After: $_SERVER[PHP_SELF] This is only valid if the array is contained within a double quote

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread 1LT John W. Holmes
> What you might try is removing the single-quotes from around PHP_SELF. > > Before: $_SERVER['PHP_SELF'] > After: $_SERVER[PHP_SELF] > > Another note: as far as I can tell you do not need the braces ({}) to > enclose a variable within a double-quoted string. I may be wrong, but > nothing I've rea

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread Jason Lange
What you might try is removing the single-quotes from around PHP_SELF. Before: $_SERVER['PHP_SELF'] After: $_SERVER[PHP_SELF] Another note: as far as I can tell you do not need the braces ({}) to enclose a variable within a double-quoted string. I may be wrong, but nothing I've read advocates d

Re: [PHP] PHP_SELF syntax

2003-02-23 Thread David Otton
On Sun, 23 Feb 2003 18:55:06 -0500, you wrote: >Could someone tell me why this code prompts a parse error. I have tried it >several different way. The statement is called from within a function: > >print "action=\"$_SERVER['PHP_SELF']\">\n"; echo ('' . "\n"); works for me (moved the variable out

Re: [PHP] PHP_SELF syntax

2003-02-23 Thread Ernest E Vogelsinger
At 00:55 24.02.2003, Peter Gumbrell said: [snip] >Could someone tell me why this code prompts a parse error. I have tried it >several different way. The statement is called from within a function: > >print "action=\"$_SERVER['PHP_SELF']\">\n"; ---