The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Can output be directed to third party as well as formtools? - 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: Can output be directed to third party as well as formtools? (/showthread.php?tid=2317) |
Can output be directed to third party as well as formtools? - filch - Dec 13th, 2012 Ben or whomever, Got a bit of a situation here. I have a form that needs to send the $_POST data to a third party (client management app) which is then responsible for sending emails and redirecting to a success or fail page back on our server. Is there a way to use formtools to facilitate this by posting the data to this external server but still save the submission in the database and provide the captcha implementation and not send any emails out as the client admin app will do this? Strange I know but that is how it goes sometimes. As usual, I am in a bit of a time crunch so would appreciate it if you have a bit of time for this, knowing that you are as busy as I am. Regards, Dave RE: Can output be directed to third party as well as formtools? - bills - Dec 19th, 2012 How do you wish to post the data to the external server? Write directly to a database on the server? You could try: Adding some code at the top of the process.php file, connecting to the external server, and write the data. Once that code is executed, the submission will store it FT as usual. Or, use the Submission Pre-Parser Module to execute your code before the submission is stored in FT. http://modules.formtools.org/submission_pre_parser/ Emails sent from FT are optional upon submissions. Capthca info: http://docs.formtools.org/api/?page=ft_api_display_captcha |