SyntaxFix
Write A Post
Hire A Developer
Questions
Try this, Add @ob_start() function in top of the page,
@ob_start()
if ((isset($_POST['cancel'])) && ($_POST['cancel'] == 'cancel')) { header('Location: page1.php'); exit(); }