Custom PHP code was written to track progress in an online training program. After each lesson was completed, the logged in user completes a simple PHP form to note they have completed the lesson. When the final lesson has been completed (and all other lessons are complete) , PHP code generates text on a image. The users name, data and certificate code are written to the certificate and then the file is saved to the web server. The user is then sent an email with the certificate as an email attachment.