Here is a basic setting of the Header to change to a new page when a button is clicked.
if(isset($_REQUEST['action']))
{
switch($_REQUEST['action'])
{ //Setting the Header based on which button is clicked
case 'getState':
header("Location: http://NewPageForSta...