We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 999
    • 67 Posts
    Hi everyone,
    sorry if im posting this in a wrong section.

    How can i get url varibles? lets say i refer to a document like index.php?id=12&message=hello.

    How can i get the message variable into my document/templates etc.

    Should @EVAL work in a chunk?

    Thank guys for a wonderfull software.

    alex
      • 7923
      • 4,213 Posts
      You cannot do php code in chunks, but:

      in snippet:

      $message = $_GET[’message’];

      in TV with eval:

      @EVAL $message = $_GET[’message’];


      EDIT: yay, 1000th post. grin


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        But you can put snippets and TVs in chunks!
          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