You are here: Re: when action = « HTML « IT news, forums, messages
Re: when action =

Posted by Jonathan N. Little on 02/12/07 21:42

Rik wrote:
> Jonathan N. Little wrote:

>> More typically:
>>
>> <?php echo $_SERVER['PHP_SELF']; ?>
>>
>> or
>>
>> <?php echo 'http://' .$_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; ?>
>
>
> Depends. I've had better results with the REQUEST_URI, as it's
> definitely the request coming in, rather then where the user ended up
> after possible rewriting etc.

If rewriting is involved the final destination will be this script, no?


> I'd rather the user still saw his entered
> URL then for instance a whole bunch of GET variables working behind the
> scene.

Well maybe if this is a GET rather than POST and you have some rewrite like:

www.example.com/script/param1/param2

www.example.com/script.php?p1=param1&p2=param2

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация