Create PDF with DOMPDF and Redirect
In a PHP project I need to Create a PDF file and redirect to another page when user clicks a Submit button. I have managed to create the pdf file using DOMPDF . PDF creation is done in a seperate file ('PDFRecipt.php') . I have called that page when a user clicks a button on the main page. This is how call PDF page header('location:PDFRecipt.php'); but the problem is when I try to redirect after calling PDF page by header('location:Other.php'); It does not create the PDF (only redirects). I tried changing header('location:PDFRecipt.php'); to include_once('PDFRecipt.php'); then it does not