trying to make a simple refresh button

tried this...
<a href="#" onClick="window.location.href = window.location.href;">

and it works but there is php on the page and it does'nt remake the call to the server

how do i force it to refresh by clicking a button like the browser refresh button.

thanks in advance