Jan 31st, 2010, 4:04 PM
My client would like a link on each page back to a form and capture the referring page. Can Form Tools work with a referrer from a link and capture that in the database?
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
Referrer link from each page to form
|
Jan 31st, 2010, 4:04 PM
My client would like a link on each page back to a form and capture the referring page. Can Form Tools work with a referrer from a link and capture that in the database?
Jan 31st, 2010, 7:49 PM
Sure, no problem! What you can do is add a hidden field to your form like this:
Code: <input type="hidden" name="referer_url" value="<?php echo $_SERVER["HTTP_REFERER"]?>" /> That will store the URL of the page that it was redirected from. Then, add the new field to be stored in Form Tools. One caveat: this will work on MOST servers but not all. Some servers don't populate that key in the $_SERVER variable. If the information isn't available there, we'll need to consider a more drastic approach... - Ben
Feb 2nd, 2010, 6:47 PM
(Jan 31st, 2010, 7:49 PM)Ben Wrote: Sure, no problem! What you can do is add a hidden field to your form like this: Thanks, Ben. Now to set it all up. |
« Next Oldest | Next Newest »
|