$accuracy = $_POST['accuracy']; $startdate = $_POST['startdate']; $enddate = $_POST['enddate']; $all_points = $_POST['all_points']; if(empty($_GET['secret'])){ $secret = $_POST['secret'];} else { $secret = $_GET['secret']; } if(isset($all_points)){ $all_points = "true"; } else{ $all_points = "false"; } if(empty($accuracy)){ $accuracy = 50; } if(empty($startdate)){ $startdate = '2012-05-30T16:15:07'; } if(empty($enddate)){ $enddate = '2012-12-30T16:15:07'; } $random = rand(1,99); ?>