The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
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 ![]() 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, 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 |