Re: Getting current URL
| From: | Sailom | Date: | Tue, 23 Jul 2002 03:14:55 +0000 |
| Subject: | Re: Getting current URL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109009@lists.php.net to get a copy of this message | ||
Thanks :)
"Peter" <php@vfsa.com.au> wrote in message
news:DPEPKCNEFOKBCNNANCIPEEJICGAA.php@vfsa.com.au...
>
>
> > -----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
>