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



Form Tools
API - Stop @ stage 3 - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: API - Stop @ stage 3 (/showthread.php?tid=1339)



API - Stop @ stage 3 - RedNan - Jun 2nd, 2011

I DO hope someone can help. I'm quite sure this is a silly little thing, like a space or period where it should not be. But I'm going bald trying to find it.

I can get the simple version to work - first time. I assume that means I have FormTools set up correctly.

I have a one page form that is rather simple and in a table format. Right now, I am interested in getting it to work. Once I do that I will add more functions and refine the form.
It's probably easier to go look...

(the form):
http://cardinalidesigns.com/examples/WiM2/registration2.php
(the 'thank you' page):
http://cardinalidesigns.com/examples/WiM2/reg_success2.php

I have used/use PHP, but am not an expert - at all.

BTW: I want wedding vendors to use the form to sign up for a free listing. My goal is to have the form fields populate a page like this:
http://cardinalidesigns.com/examples/WiM2/reception_venue.php

A small image upload is a must (I intend to limit the size & dpi etc.)
I'd prefer not to deal with un/pw, but that will be a future function, so may as well do it now.

I AM aware I may have bitten off a HUGE chunk and am chocking on it before I get started! But I KNOW I can do this! ...with a little help from my new found friends!

Thanking in advance...


RE: API - Stop @ stage 3 - Ben - Jun 3rd, 2011

Hi Rednan,

Haha, I've been balding for years - web development does that to you. At this rate I have about 3 or 4 years left of hair.

So I took a glance at your form and everything looks okay except for the name attribute is missing from your "Join" button. You'll need to add that so that the API function will know what to look for to know that the form has been submitted. So make your submit button look like this:

Code:
<input type="submit" name="join" value="Join!" />

Then, in the $params variable being passed to the ft_api_process_form function, make sure the "submit_button" key has a value of "join", i.e.

PHP Code:
$params = array(
  
// ... 
  
"submit_button" => "join"
); 

Hope this helps, and good luck! Smile

- Ben




RE: API - Stop @ stage 3 - RedNan - Jun 3rd, 2011

Ben,
Thanks for the speedy help! Is Rogain in your future?! ;-D

I wish I could say I was jumping for joy at that simple fix, but alas...

When I verified the first form using the non-API method, I didn't have name= "name" and it worked. But, as stated, that was the easy way!

I... have no idea. I have tried the test/verification and I do not get the splash page I should get... I get returned to the, now empty, form. I have made sure I go to the 'thank-you' (reg_success.php) page to clear the session.

Grrrr... any other suggestions? It's just gotta be something staring me in the face!

Thanks again.


RE: API - Stop @ stage 3 - RedNan - Jun 4th, 2011

FYI: I'm going to try this again w/o the file upload part. I'm not sure I configured that correctly, in fact, I'm almost positive I did not.

I'll let you know the outcome - in case anyone else has the same problem.



RE: API - Stop @ stage 3 - RedNan - Jun 8th, 2011

SUCCESS!
I have to apologize to Ben. His suggestion:" .. "submit_button" => "join" " was spot on.
I had it set to the VALUE, which was/is 'Join!' It needed to be 'join'.. DUH!

I KNEW is was simple stupid!

Thank you Ben... I only wish I had been paying more attention.
A lesson to us all!

..and thanks to Tony Merritt for walking me thru to success.