We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21103
    • 5 Posts
    I am a newbie to PHP and HTML

    Can some one provide a working example so that I can copy paste
    and try sending an email using the example.
    I have installed eForm today and sendmail is running.
    Thankyou in advance.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can take a look at my implementation, log in to my Manager as guest-guestuser, and look at the Chunks I have for the contact form (they’re all together in the Contact category at the top of the Chunks tab). Don’t let the silly Javascript fool you; it’s really just a basic eForm contact form (although I do use a couple of custom event handler functions with it).

      Or you can use the example in the documentation that can be found in assets/snippets/eform/docs. There are several examples, as well as the rest of the documentation which is useful to know.
        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
        • 21103
        • 5 Posts
        Thankyou Susan Ottwell,
        1. Got the assets/snippets/eform folder ready.
        2. eFeedBackForm, eFeedBackReport, eFeedBackThanks and eForm
        ready, all according to the docs/examples.
        3. Created a contact.html, contents are -
        <html><body>
        <p>[!eForm? &formid=`feedbackForm` &to=`[email protected]` &tpl=`eFeedBackForm` &report=`eFeedBackReport` &thankyou=`eFeedBackThanks` &mailselector=`department` &vericode=`1` &subject=`Web site feedback`!]</p>]
        </body></html>

        Now,
        4. How do I use the ’formid’ ?
        5. Thanks for your Manager userid, but how do I get there ?
        Where am I going wrong ?Quote from: sottwell at Nov 08, 2010, 07:00 AM

        You can take a look at my implementation, log in to my Manager as guest-guestuser, and look at the Chunks I have for the contact form (they’re all together in the Contact category at the top of the Chunks tab). Don’t let the silly Javascript fool you; it’s really just a basic eForm contact form (although I do use a couple of custom event handler functions with it).

        Or you can use the example in the documentation that can be found in assets/snippets/eform/docs. There are several examples, as well as the rest of the documentation which is useful to know.
        Lots of thanks in advance.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          The formid parameter in the snippet call must match either a hidden input field’s value, or the form’s ID:
          <form id="feedbackForm" ...>

          This way it is possible to have multiple forms on the same page; eForm will tell them apart from the formid. If you just use the id attribute of the form, eForm will generate the hidden input field at the bottom of the form.

          A URL for guest managers is in the signature at the bottom of all of my posts.
            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
            • 21103
            • 5 Posts
            I have installed only repo-2337.zip(eForm portion of modX).
            Is complete modX required ?
              • 21103
              • 5 Posts
              How to execute "[!eForm...."
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Um... yes, eForm is a MODx add-on. It’s a snippet, and requires MODx to work, as do all MODx add-ons (except for maybe a few modules like BkupMODx that can run stand-alone).

                If you’re just looking for a form processing script, try one of these http://www.google.co.il/#hl=en&source=hp&biw=1024&bih=638&q=php+form+processing+script&aq=1&aqi=g10&aql=&oq=php+form+processing&gs_rfai=&fp=265d75b539f8caec
                  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
                  • 21103
                  • 5 Posts
                  Thankyou Susan. Yes, I am looking for exactly an eForm like
                  stand-alone solution.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Well, you should find a few in that search results! Remember, Google is your friend!
                      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