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



Form Tools
Manually adding a call to external php function? - 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: Manually adding a call to external php function? (/showthread.php?tid=1803)



Manually adding a call to external php function? - bagpiper - Dec 8th, 2011

Hello There,

I'm now a big fan of FT, it actually saved me days of dev work Smile

Now, upon submission of a form, I'd like to add a few calls to various external php functions of my own. The reason for this is that we need to send an "activation email" for a software download. What's the best way to do it? I'd also need to know how to get the primary key of the db table generated when we get a form submitted so that when the user clicks on a link my script looks up the corresponding primary key and complete my registration process.

Thanks for your help!

Marty


RE: Manually adding a call to external php function? - bagpiper - Dec 13th, 2011

Hi all,

Looking further into this I see that in the process.php, line 336 issues
a header redirection before completing the call. Would this mean that issuing my php commands just before that line would be something ok to do? Thanks for your input!

Marty


(Dec 8th, 2011, 8:09 AM)bagpiper Wrote: Hello There,

I'm now a big fan of FT, it actually saved me days of dev work Smile

Now, upon submission of a form, I'd like to add a few calls to various external php functions of my own. The reason for this is that we need to send an "activation email" for a software download. What's the best way to do it? I'd also need to know how to get the primary key of the db table generated when we get a form submitted so that when the user clicks on a link my script looks up the corresponding primary key and complete my registration process.

Thanks for your help!

Marty




RE: Manually adding a call to external php function? - Ben - Dec 17th, 2011

Hey Marty,

Absolutely! Header redirects only prevent you from actually outputting something. So as long as you code just performs a task and doesn't echo/print/print_r or anything to actually display a value, you'll be fine. Also - beware that any errors will also prevent the header from redirecting.

Good luck with it!

- Ben



RE: Manually adding a call to external php function? - bagpiper - Dec 19th, 2011

Thank you Ben, I appreciate your comments.

Happy Holidays,

Marty