Hello i have the following code to fill out a pdf:
// Row Updating event
function Row_Updating($rsold, &$rsnew)
{
use tmw\fpdm\fpdm;
// setup the autoload function
require_once('vendor/autoload.php');
$fields = array(
'name' => $_POST['x_Credentials'],
//'email_field' => $_POST['name'],
//'phone_field' => $_POST['Credentials'],
//'enquiry_field' => $_POST['Credentials'],
//'date' => $_POST['date'],
//'effective' => $_POST['effective'],
//'datesig' => $_POST['date'],
//'datesig1' => $_POST['date'],
//'rate' => $_POST['Rate'],
//'name3' => $_POST['name'],
//'effective3' => $_POST['effective'],
//'rate3' => $_POST['Rate'],
//'typeposition' => $_POST['typeposition'],
);
$pdf = new FPDM('template.pdf');
$pdf->Load($fields, false); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
$pdf->Merge();
$pdf->Output('I', ''.$name.' 101 Employment Agreement.pdf');
return true;
}
but i getting error :C:\xampp\htdocs\models\DoxxGenerator.php(1447): syntax error, unexpected ‘use’ (T_USE)i install the pack and update the composer, but it is not workingany help on this? thanks