We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28242
    • 3 Posts
    I’m trying to get the koopsmailinglist module working. It comes with a snippet for the registration form. When I press submit nothing appears to happen. I edited the snippet to var_dump $_POST, and it is empty despite filling in the form. How can I retrieve POST values from within a snippet?
      • 10487 MODX Staff
      • 1,535 Posts
      Garry Nutting Reply #2, 20 years ago
      When I press submit nothing appears to happen.
      Hi sproutworks, normally this happens if you have the snippet call cached (eg. [[mySnippet]]) - try changing the snippet call to be uncached, eg. [!mySnippet!]

      Any snippets that rely on accessing the request variables ($_POST and $_GET) will need to be called uncached.

      Hope that helps,
      Garry
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com