RE: [PHP] Getting current URL
| From: | Peter | Date: | Tue, 23 Jul 2002 03:00:49 +0000 |
| Subject: | RE: [PHP] Getting current URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109006@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Sailom [mailto:amorndet@colorado.edu]
> Sent: Tuesday, 23 July 2002 12:53 PM
> To: php-general@lists.php.net
> Subject: [PHP] Getting current URL
>
>
> This might be a silly question.
> Just like the subject, how to get the current URL? I want to
> make a reload
> button by making a form and direct user to the current page.
>
> Sailom
a couple of ways i can think of ..
1 leave the action blank in your form tags eg... <form> or <form name="foo"
action="" method="POST">
2 have $PHP_SELF as ur action eg <form name="foo" action="<? $PHP_SELF
?>"
method="POST">
cheers