I would like to add unique ID at the end of my link or somewhere in the html code, that is placed in my Invoice. The link takes people to a page where they accept the terms of trade, then the email is sent as a confirmation. I can edit my invoice in Word and send it to my clients in both word docx or PDF. Is there a way of extracting from these documents a job id or their name and add it to the link they click, then forward that info with the confirmation email, so I can keep track of who accepted the terms?
Here is the code I have for an email confirmation:
<?php
session_start();
if(!isset($_SESSION))
session_start();
if(isset($_POST['Submit']) && $_POST['termsoftrade'] == 'termsoftrade') {
$youremail = 'email@mail.com';
$from = 'Invoice';
$subject = "Terms accepted";
$message = $_POST['message'];
$to = $youremail;
$headers = 'From: ' . $from . "\r\n" . 'X-Mailer: PHP/' . phpversion();
$body = 'xxx has accepted the terms of trade.';
}
$check = $_POST['termsoftrade'];
if ($check==false) {
include "errormsg.php";
} else {
include "thanks.php";
mail($to, $subject, $body, $headers);
}
?>