Unless you do an extract($_POST); in a main include somewhere before your
form.

For $PHP_SELF just do $PHP_SELF = $_SERVER['PHP_SELF']; or to get all of the
$_SERVER vars, do extract($_SERVER);

-Shawn


"Jeff McKeon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
So you're saying I had register_globals set to ON on my dev server!?
CRAP!!! I thought I was working with it off!!!!!

Now I have to redevelop it all and change all my $variables from forms
to $_POST['variable']? Even when they post to the same page with
"action='<?PHP ECHO $_SERVER['PHP_SELF']>'"??

Jeff


> -----Original Message-----
> From: Paul van Schayck [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 8:24 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Echo $PHP_SELF not working
>
>
> Hello,
> Here we go again ;)
>
> [EMAIL PROTECTED] (Jeff McKeon) wrote
> > I've just published a new website and something is wrong.
> I suspect
> > the PHP.ini on the server but I can't seem to find anything.
>
> register_globals is on off. Which is a good idea, keep it there!
>
>
> > On the dev server "ECHO $PHP_SELF" seems to work but not on the
> > production one.  Any ideas what I've missed?
>
http://nl2.php.net/manual/en/reserved.variables.php#reserved.variables.s
erv
er

echo $_SERVER['PHP_SELF'];

Paul

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

Reply via email to