top.location.replace('{$commit_result['form_redirect']}')"; exit; } }elseif (!empty($_POST['review_back'])){ //go back to form $ssl_suffix = get_ssl_suffix(); header("Location: http{$ssl_suffix}://".$_SERVER['HTTP_HOST'].get_dirname($_SERVER['PHP_SELF'])."/view.php?id={$form_id}"); exit; }else{ if(empty($form_id)){ die('ID required.'); } if(!empty($_GET['done'])){ $markup = display_success($form_id); }else{ if(empty($_SESSION['review_id'])){ die("Your session has been expired. Please click here to start again."); }else{ $record_id = $_SESSION['review_id']; } $markup = display_form_review($form_id,$record_id); } } header("Content-Type: text/html; charset=UTF-8"); echo $markup; ?>