Re: Page detect
| From: | J Smith | Date: | Tue, 21 Aug 2001 16:01:43 +0000 |
| Subject: | Re: Page detect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63787@lists.php.net to get a copy of this message | ||
If you're talking about the PHP page itself, try $PHP_SELF. If you want to
know what page sent the form data to the PHP page, try $HTTP_REFER. Be
careful, though, as not every browser sends the referring page along with a
request, leaving $HTTP_REFER empty.
J
Kevin P wrote:
> Hi all
>
> I am just five days new to PHP. When sending an HTML form to a PHP
> page
> for handling, can you cause the PHP to detect the page name (like form.htm
> or form2.htm)?
>
> thanks
>
> Kevin