title: pass URL on to Contact form
body: <p><strong>Situation:</strong>
  A user is viewing a web-page using the contact option provided. Upon clicking 'Contact', I'd like to pass the URL of the currently viewed page as text into a field of that contact form.</p>
  
  <p>The starting point is any HTML page (page-xy.html).
  The existing contact-form is written in PHP, HTML and CSS (contact.php) and does function fine.
  I assume a Javascript may help to accomplish this procedure.</p>
  
  <p>Upon clicking the 'Contact' button, this Javascript command reads the current URL: 
  <code>var strReferrer=window.location.href;</code> </p>
  
  <p>The <strong>question is</strong> how to pass this variable 'strReferrer' on to 'contact.php' that is being opened?<br>
  In the following the variable should be inserted into the message text field for example.
  I'd rather not use a cookie for this.</p>
  
  <p>Hope someone has suggestions leading to the solution, thanks.</p>
  
  <p><a href="https://stackoverflow.com/questions/5283845/passing-a-variable-from-php-to-javascript-and-on-to-an-html-form">My goal is just about the reverse of the problem described in this thread</a></p>