I got a problem... I am writing a snippet which sometimes submits a form to itself, and links to itself with certain additional GET-variables. Now this is my thing: at a certain moment my page url looks i.e. like this:
http://www.domain.com/index.php?id=14&var=...astvar=fooagainAnd now in that document I have to make a link to
http://www.domain.com/index.php?id=14&diff...=ofdifferentuseNow I am planning to implement a way to do this by taking $_SERVER['PHP_SELF'] and adding a '?' and then parse $_SERVER['QUERY_STRING'] in a certain way so that it will only hold the id-variable. But I think this is not the most secure way to handle this, and it may be buggy in some cases. So my question is: is there a way (read: variable-value) which gives me just the full URL of a page? (Like $etomite->pageurl or so?)
Edited by pelleke, 09 February 2006 - 11:54 AM.










