RE: [PHP] Re: 4.0.2 => 4.2.3, form vars are empty?
| From: | Ford, Mike [LSS] | Date: | Mon, 30 Sep 2002 10:01:35 +0000 |
| Subject: | RE: [PHP] Re: 4.0.2 => 4.2.3, form vars are empty? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118179@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Pekka Saarinen [mailto:contacts@sci.fi]
> Sent: 28 September 2002 10:14
>
> For commonly used $PHP_SELF I use this:
>
> if (isset($_SERVER)) $PHP_SELF = $_SERVER['PHP_SELF'];
> $scriptname = basename($PHP_SELF);
What's wrong with $HTTP_SERVER_VARS['PHP_SELF']?
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211