Results 1 to 5 of 5

Thread: Redirect form results to an external database

  1. #1
    New user
    Join Date
    06-29-12.
    Posts
    8

    Default 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!

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default 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
    Consulenza Contao CMS https://www.intco.it

  3. #3
    New user
    Join Date
    06-29-12.
    Posts
    8

    Default 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!

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default 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.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    New user
    Join Date
    06-29-12.
    Posts
    8

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •