Reply to Re: more to $_SERVER{'PHP_SELF'] or other?

Your name:

Reply:


Posted by Chris B on 06/10/05 01:27

Jim S. wrote:
> is there a php function that can take the URL in the address (with the
> values added) and append whatever to it?
> i know there is a $_SERVER['PHP_SELF'] but it does take the URL without the
> added variables. help please
> thanks
> Jim


$newurl = $_SERVER['PHP_SELF'];

if ($_SERVER['QUERY_STRING']) $newurl .= "?" . $_SERVER['QUERY_STRING'];



$_SERVER['QUERY_STRING'] holds the v=1&c=2&ian=1632 etc. but you need to
put the ? in manually as I did

[Back to original 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

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