RE: [PHP] $PHP_SELF in include files
| From: | Jason Murray | Date: | Tue, 12 Mar 2002 23:23:19 +0000 |
| Subject: | RE: [PHP] $PHP_SELF in include files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88262@lists.php.net to get a copy of this message | ||
> <?php
> function questions()
> {
[snip]
> <a href="<?php echo $PHP_SELF?>?page=questions"><font
[snip]
> }
> ?>
$PHP_SELF is unknown to the function "questions()".
You'll need to add "global $PHP_SELF" at the top of the function.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Developer, Melbourne IT
"Work now, freak later!"