The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
WordPress Integration - 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: WordPress Integration (/showthread.php?tid=296)



WordPress Integration - Jaace - Sep 22nd, 2009

I'm having some trouble getting my multi-page form to continue onward. First let me point out that I'm using this within WordPress...so I've set up different templates that contain the form code but also can be populated with other content via the back-end. Not sure if this is related to the problem here.

What I've noticed is that when I use the form action echo $_SERVER["PHP_SELF"]...the form always points to http://mysite.com/index.php

So when I hit submit, the form just tries to go to that URL instead of what I specify in the params which would be another page in the WordPress framework that I've set up in a similar manner. I could just use the file name for the action I suppose...but I wanted to do this the correct way :-). Any ideas?


RE: WordPress Integration - Jaace - Sep 26th, 2009

I've resorted to not using the form action $_SERVER["PHP_SELF"] in WordPress and I'm instead using the relative path of the url, so for example if the first page is http://wordpress-site.com/form1 then I'd use /form1 for the first form page, /form2 (or whatever it's called) for the second and so on, so that it submits to itself and can continue the chain.

I'd really like to know why WordPress resolves PHP_SELF as index; but that's not something that I'm going to spend a lot of time on.


RE: WordPress Integration - Ben - Sep 26th, 2009

Heya,

Yes, PHP_SELF usually includes the file name as well. The $_SERVER variable is invaluable for extracting certain information, but it's notoriously inconsistent across servers. This is one of PHP's really AWFUL features: inconsistent implementation of global variables like this. Unlike other keys like REQUEST_URI, PHP_SELF is defined on virtually all servers so I decided to rely on it in the Form Tools code.

Glad you found a solution, at least.

- Ben


RE: WordPress Integration - st8 - Nov 4th, 2009

I am having this same problem in wordpress. The page submits to the index page when you use echo $_SERVER["PHP_SELF"].

I will use the file name to solve the problem, but im not sure which file name to use? Where should I submit the form to?

Thank you.


RE: WordPress Integration - Ben - Nov 7th, 2009

Hey st8,

It'll be the same page you're currently on: so /my-page or whatever.

- Ben


RE: WordPress Integration - trodat - Mar 4th, 2013

(Nov 7th, 2009, 10:59 AM)Ben Wrote: Hey st8,

It'll be the same page you're currently on: so /my-page or whatever.

- Ben

Ben, I've had a working FT form for over 2 years, but I also now need to place my external form inside a wordpress theme to match the clients new website design and can't seem to get it to work as expected. I am calling the page from within the a basic wordpress theme template via php:

<?php include '/path/to/register/index.php'; ?>

I just upgraded Form Tools to v2.2.5. API v1.1.4. Your solution gets the form to proceed to the next page, but the users input data is not being saved, all fields are blank on page 2 (Review). In the database, all the values are NULL. When I go back, the form is also blank. I also tried adding this to my config.php file:

$g_api_session_type = "database";
$g_api_session_timeout = "3600";

...with no luck. Also put the php api call on-top/first directly in the wordpress template. Tried disabling JS in my browser, nope.

My multi-form is Step 1 (Register Form), Step 2 (Review), Step 3 (PayPal), Step 4 (Confirmation).

I've been working on this for 5 days and really need to get this form to work within a wordpress template.


RE: WordPress Integration - shankar11 - Apr 12th, 2013

having this same problem in my site http://www.packersmoversinmumbai.com and http://www.moversandpackersbangalore.com