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
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
Initialization Using Flash 9 CS3 - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Initialization Using Flash 9 CS3 (/showthread.php?tid=1276)



Initialization Using Flash 9 CS3 - joez12345 - May 9th, 2011

Hi everyone. Ive recently put up a flash site and have been having trouble getting passed the form tools initialization process. setting up the form with the hidden initialization variable.
Dose anyone know of a link to a good tutorial on this subject. Im using Flash 9 CS3.
Thanks for a great script.
Joe


RE: Initialization Using Flash 9 CS3 - Ben - May 9th, 2011

Hi Joe,

Good call - I should really write a tutorial on that!

In essence, the process is exactly the same as with adding POST forms:
http://docs.formtools.org/tutorials/adding_post_form/?page=step3

You just need to add those two hidden variables to your POST request: form_tools_form_id and form_tools_initialize_form/

In the past, I've found the trickiest part is knowing whether or not your Flash script is actually sending the form data to the process.php file. What I'd suggest is using Firebug (the Firefox plugin) and look at the "Net" tab to see what requests are going on behind the scenes, or write a separate PHP script that just emails you the contents of the POST and submit it to that file as a test.

Sorry for the rather high-level advice... I will write a tutorial at some point!

- Ben


RE: Initialization Using Flash 9 CS3 - joez12345 - May 11th, 2011

Ben
Thanks for the quick response. For the life of me I cant seem to get the hidden variable to pass along the form ID. Here is a screen shot of my last try at passing the hidden form ID. I have tried to put input on main stage and have had the same error.

process.php requires a form ID for processing. Make sure your form contains a hidden field with the name "form_tools_form_id" that's passing along the form ID.
[Image: screen.html]


RE: Initialization Using Flash 9 CS3 - Ben - May 12th, 2011

Rats, I don't think the image survived the trip to the forums. Mind try re-posting it?

But that message is pretty unequivocal. Look over your form post code to confirm that the information is actually being sent.

Oh, one other possibility: are you using sendAndLoad() and the form is located on a different server? (or on http://yourdomain.com and Form Tools is configured as http://www.yourdomain.com?). If so, you'll need to add a crossdomain file. See:
http://kb2.adobe.com/cps/142/tn_14213.html

sendAndLoad (and probably other functions) attempts to both send, then extract the resulting content from the request (i.e. whatever markup the server generates). In that case, Flash needs to have permission to access the code - hence the need for the crossdomain file.

That *always* trips me up.

- Ben




RE: Initialization Using Flash 9 CS3 - joez12345 - May 13th, 2011

Thanks for all the help and a great script. I finally found the concern.
I was attempting to send the hidden variable on the actions panel for the submit button.
I had to pass the hidden initialize variable on the main stage. once that was done setup was simple.
Thanks again and keep up the good work.