title: How do I create a confirmation email in PHP?
body: <p>I was asked by a person to create a php code, which is a part of a larger ERP software development project, so that he can test my skills. The code regarding a simple user authentication once the user registers through a form , by putting name, date of birth ,email.(which I have already done through html).</p>
  
  <p>The action property of the html form, is a php file which consists of php code to  <strong>get</strong> the posted inputs in the form, generate a verification link, and send it to the user via his/her email which he/she has already given.</p>
  
  <p>I have two basic questions or problems:</p>
  
  <ol>
  <li>How can this verification link be created?</li>
  <li>Once the user clicks on this type of a link how does PHP know that they did so?</li>
  </ol>
  
  <p>I don't think that there is any concept of event-driven programming in PHP. In that case, how does PHP handle that click and give a "conformational success message"? Is a MySQL database required or is there another easier way?</p>