So I'm validating this form, when there are no errors it redirects with a header to a confirmation page. I want to get all the $_post data and put them into session variables so I can pass the data onto the confirmation page. However I get the error 'Cannot modify header information - headers already sent by', I assume this is happening because of a conflict with 'session_start'
 if  ($errors == 0) { 
     session_start();
     header('Location:../confirmation.php');
 }
 else {
     header('Location:../order.php');
 }
What do?
 
    