I am using html2pdf sucessfully created pdf, then I want to save pdf with different name based on the textbox value.
<?php
$diff_name=$_POST['name'];
$html2pdf = new HTML2PDF('P', 'A4', 'fr');
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
// save different name
$html2pdf->Output('$diff_name.pdf', 'F');
?>
<html>
<body>
<input type="text" name="name" />
</body>
</html>
Your HTML output is incomplete.
Try this:
this is so old, but maybe somebody else will need the response.
This will control the output of the browser title.