We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17029
    • 8 Posts
    Hello!
    I have the following problem. This is my code:

    $SendMail .=<<<EOD

    <form method="POST" name="myform" action="[~[*id*]~]" >
    <INPUT type="text" name="title" size="80" maxlength="80"><BR>
    <INPUT type="submit" value="SEND" style="font-weight: bold;">&nbsp;<INPUT type="reset" value="Clear">
    </FORM>

    EOD;

    if (isset($_POST["title"])) {
    $SendMail .= "<p>Hello" . $_POST[’title’] . "</p>";
    }
    return $SendMail;

    When I submit form the $_POST variable isn’t shown. The same occurs if I change $_POST to $_GET. So, why I cannot receive $_POST or $_GET variables value?
    Thanks in advance.
      • 22815
      • 1,097 Posts
      Quote from: Levonty at Aug 01, 2006, 07:56 AM

      When I submit form the $_POST variable isn’t shown.

      Is the Hello bit shown?
        No, I don&#39;t know what OpenGeek&#39;s saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        If your page is cached, the snippet needs to be called uncached, [!...!]. If the snippet as well as the page is cached, it will never change from its first display, since it isn’t run again on the page refresh.
          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
          • 17029
          • 8 Posts
          Thanks!
          It’s really helps me!