Well, I'm having a problem with a form, basically I'm getting the information from an HTML form with the POST method for a PHP page, I need to generate a pdf from that form and I managed to do it with mPDF (6.0) all right, but I can only save 1 pdf, I believe it is because of the filename it is replacing the file that already exists in the folder.
I would like to know if I can create something like an auto increment to avoid files with the same name, or if I can use a variable to get a form field and use it as a name.
Follow the PDF output code with the mPDF class:
$mpdf=new mPDF();
$mpdf->SetDisplayMode('fullpage');
$css = file_get_contents("css/estilo.css");
$mpdf->WriteHTML($css,1);
$mpdf->WriteHTML($pdf);
$mpdf->Output('-local-\form.pdf', 'F');
As I said it is working, however, I can only keep 1 file saved.
Thank you in advance.