A page loads with several form buttons on it. Here is my code when I click on one of them:
if ($_POST['editItem'])
{
$_SESSION['stockNum'] = $input;
header('Location: createEdit.php',false);
exit;
//location
}
This seems to make sense to me but then I get the following error message in the browser, can someone please clarify this for me? What does it mean by headers already sent? Can't I forcefully replace them or something? This is urgent as I'm being pressured by my boss. Please help.
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\xampp\htdocs\viewstock.html:16) in C:\Program Files\xampp\xampp\htdocs\controller.php on line 36