I have the current url as: http://example.com/abcdef
When an event occurs (clicking submit button etc.), the current url needs to be updated with a different value other than "abcdef". For example, http://example.com/xaxaxa
"xaxaxa" is stored in a variable in PHP (basically from mySQL).
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.