Redirect form results to an external database
Hi! Need help with some programming, but i´m not sure if it is possible.
I've got a newsletters suscription form (just 1 input). Naturally, every email address inserted goes to the Contao database...but i´d like the emails to be added to an external database (the one of the newsletter platform).
NOTE: i know nothing about PHP!
Thanks, regards!
Re: Redirect form results to an external database
Quote:
Originally Posted by nashingae
Hi! Need help with some programming, but i´m not sure if it is possible.
I've got a newsletters suscription form (just 1 input). Naturally, every email address inserted goes to the Contao database...but i´d like the emails to be added to an external database (the one of the newsletter platform).
are you using a service like mailchimp or aweber?
Quote:
Originally Posted by nashingae
NOTE: i know nothing about PHP!
for mailchimp there is an extension http://contao.org/en/extension-list/...lchimp.en.html
if there isn't an already-made extension (without php knowledge) I think it will be a little bit hard
Re: Redirect form results to an external database
hi! thanks for your reply.
it´s a custom made platform. I thought maybe just a redirect code would be a solution.
Let´s suppose i manage to handle the PHP code, from where do i have to do it? i mean, where's the code i have to modify? The form was created with a module
Thanks again!
Re: Redirect form results to an external database
Try to read about hooks http://contao.org/en/hooks.html e.g. the processFormData hook or search all core files for 'hook'. Search for 'contao register hook'.
With the hook you should catch the values to save them in any DB.
Also think about only to use Contaos DB, export your data records from the platform and import them in Contao.
Re: Redirect form results to an external database
Thanks Andreas,
i´ll take a look to that guide and let know how it goes on!
Regards