note 10792 added to Constants
| From: | gurubobnz at yahoo dot com | Date: | Mon, 22 Jan 2001 20:16:57 +0000 |
| Subject: | note 10792 added to Constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10080@lists.php.net to get a copy of this message | ||
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">
http://www.php.net/manual/en/language.constants.php