Guest User

Untitled

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <form ...>
  2. <!-- Your contact form goes here -->
  3. <input type="hidden" id="strReferrer" name="strReferrer" value="whatever" />
  4. </form>
  5.  
  6. <input type="hidden" id="referer" name="referer" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" />
  7.  
  8. <a href="/contact/contact-form.php" title="send an eMail" onclick="return(contact())">Contact the author</a>
  9.  
  10. <script>
  11. var strReferrer = location.href;
  12. function contact() {
  13. window.open("/contact/contact-form.php?sourceURL="+strReferrer);
  14. return false;}
  15. </script>
  16.  
  17. //get the URL from the originating page (where this form has been called from)
  18. $params = $_SERVER['QUERY_STRING'];
  19. ...
  20. ...
  21. // Insert '$params' into the text as part of the text to be eMailed.
  22. // the eMail Content Header for the recepient
  23. $_POST["text"] = $_POST["send"]["author"]." with e-mail address: ".$_POST["send"]["mail"]." sent the msg below: n <$params> n n $texto";
Add Comment
Please, Sign In to add comment