Codice PHP:
header("Location:".$_SERVER['HTTP_REFERER']."");