How to update a URL in PHP?
<p>I have the current url as:
<a href="http://example.com/abcdef" rel="nofollow">http://example.com/abcdef</a></p>

<p>When an event occurs (clicking submit button etc.), the current url needs to be updated with a different value other than "abcdef". For example,
<a href="http://example.com/xaxaxa" rel="nofollow">http://example.com/xaxaxa</a></p>

<p>"xaxaxa" is stored in a variable in PHP (basically from mySQL).</p>

<p>I know how to "get" (using $_SERVER['SCRIPT_NAME']) the current url in php, but can anyone tell how do I "set" one. I dont want to actually redirect to another page (e.g. using Location:..). I just need the url to be updated.</p>
