We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14999
    • 0 Posts
    That’s enough, is a long time that I try to solve these two problems trivial

    1 problem: I have to integrate a form composed of different php file (form.php, config.php, thankyou.php

    I gave ’look at the forum but no solution, only confusion, loss of time

    2 problem, too trivial, see username and fullname in weblogin.inc.php

    Please if someone else in this forum Reply to entry that can send the exact code, so everyone can benefit from this post

    P.S. Do not reply if you are not professionals MODx

    thanks
      • 33968
      • 863 Posts
      Hi, not sure exactly what you are asking. Are you using Evolution or Revolution?

      Have a look at FormIt for Revolution or eForm for Evo... if you still prefer a custom form snippet, then you can include external files simply by using a php include.
        • 3749
        • 24,544 Posts
        I’m an amateur, but the usual method is to move the PHP code into a snippet. Then place a snippet tag on the page where you want the PHP to execute:

        Revolution:
        [[!MySnippet]]

        Evolution
        [!MySnippet!]


        You can also use a snippet that contains this code:

        return include "path/to/php/file";
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting