The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Pulling URL in the form results - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Pulling URL in the form results (/showthread.php?tid=2383) |
Pulling URL in the form results - cemt - Feb 19th, 2013 Hi I want the Form Location to be pulled in Form results I have a simple Post HTML Form on a PHP Server, which is the simplest way to pull the page url it was submitted from? Any simple PHP code to achive this? Is there a command like how it pulls the IP and Date info? I'm using Formtools 2.1.2. Thanks in Advance! Ss RE: Pulling URL in the form results - Joe - Feb 19th, 2013 Hi Ss, If you are adding External Forms or Form Builder forms, the simplest way to indicate which URL thge submission is coming from is to just specify the URL as a hidden variable in your form. If you need to have the URL specified dynamically, the PHP code to specify a page's URL is: PHP Code: $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; The IP and Date info (Date and Last Modified) are automatically added to each form. No need to add this into your code. Cheers, Joe RE: Pulling URL in the form results - cemt - Feb 28th, 2013 Thanks Joe! I will try it. Much Appreciated! (Feb 19th, 2013, 12:25 PM)Joe Wrote: Hi Ss, |