note 10792 deleted from language.constants by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 19:05:02 +0000 |
| Subject: | note 10792 deleted from language.constants by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25225@lists.php.net to get a copy of this message | ||
[Editor's Note: A simpler way to find the file name of the currently requested script is:
$script = basename ($REQUEST_URI);
--zak@php.net]
This works well for me:
// Get the script name
$script=explode('/',$PHP_SELF);
$script=$script[sizeof($script)-1];
I can then use things like:
echo<<<EOF
<form action="$script?add_your_params_here" method="POST">