usando questa variabile:
codice:
$_SERVER['REQUEST_URI']
ottieni l'url corrente, compresi i parametri passati tramite querystring.