nell'action della form ho messo:

Codice PHP:
<form action="'.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'].'"