We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26182
    • 164 Posts
    Hi,

    I want to create a front-end form for users to be able to post from the front-end a form that gets put in the database and then every 24 hours this data from the database is posted to an email address.

    If anyone has any ideas on where to start please let me know.

    Thanks,

    Sarah
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The first part is easy enough; there’s plenty of discussions in the forums about inserting data from a form using an eForm event function.

      The second part will require a cron job. That will depend on whether or not your hosting allows them. Some hosting control panels have a cron "wizard" allowing you to specify a script to run and at what intervals.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6726
        • 7,075 Posts
        For the first part look at eForm2db, might help smiley
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 26182
          • 164 Posts
          thanks for all your help smiley

          i’m having a bit of trouble with the snippet suggested but i’ve posted to the forum about it. might see if i can find some other ways to do it if this doesn’t work out.

          thanks!

          sarah