If any one can help me out I would really appreciate it. What I need is a script that will capture a string in a url and add it to the url when a person clicks on a link. For example if someone comes to the page from the url "http://www.whatever.com/index?username=me&action=all" it will capture from the "?" on and add it to the url of a link that they would click on. Thanks to all that help. samiam@ciris.net
try
print "<a href=\"newpage.php?" . getenv("QUERY_STRING") . "\">click here!</a>";
-frymaster