The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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'];
echo 
$url

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,

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'];
echo 
$url

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