title: HTML form - how to use GET method to also generate email?
body: <p>I am hoping this question has a simple answer.</p>
  
  <p>I have an HTML form on a website that uses the GET method to send the variables within the form to a PHP page, i.e.</p>
  
  <pre><code>&lt;form name="create_landing_page" action="/landing-page/" method="get"&gt;
  </code></pre>
  
  <p>What I would like to do is also generate an email when that form is submitted so I have the dynamic URL written down somewhere, since we don't save them to a database. I tried putting some PHP on the landing page that automatically generates an email when the page loads using this method: <a href="https://stackoverflow.com/questions/6021183/how-to-send-an-email-notification-when-a-page-is-visited">How to send an email notification when a page is visited?</a>, but I'm not receiving any of my test mails.</p>
  
  <p>Is there a very simple way I can either grab the variables from the submitted form and email them, or grab the URL from the landing page and email that?</p>
  
  <p>Thanks for your help!</p>