We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41906
    • 6 Posts
    Hello, i have problem - i need to integrate this code from one project to MODx website Evo 1.06, could you please help me? This a code of another php script and when you booking, link must be like http://site.com/enquiry?bid=tour1 e.g., so i have a snippet [[enquiry]], but when i click a button "Enquiry this tour" - MODx resend me to main page, when i click second time - send me to enquiry page, but when i fill all fields - nothing happen, or Page not found, help me please, i spent already 3 days about it and can not solved.. [ed. note: liner2007 last edited this post 13 years, 11 months ago.]
      • 34084 ☆ A M B ☆
      • 756 Posts
      Can you provide the page (domain) that the ModX site is running on and also the code where you are generating the link noted above.

      Traditionally if the link is onsite and you have Friendly URL's turned "on" you can create a link with the query string as normal assuming that the code is running through ModX snippet and also on the same domain it may look like:

      With Friendly URL's on:
      <a href="[~22~]?bid=tour1">My Link</a>


      WIthout Friendly URL's:
      <a href="[~22~]&bid=tour1">My Link</a>


      *note: that the value "22" is an example ModX Evo resource ID.
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 10208 ☆ A M B ☆
        • 1,780 Posts
        Is the code you posted in snippets in MODX? Or is it the source from another project?

        What exactly have you tried, what do your snippets and chunks contain, and how are you calling it into MODX? Without knowing what you've tried, how it's set up, and how you're trying to pull it out, the rest of us are likely about as confused as you are.

          Frogabog- MODX Websites in Portland Oregon
          "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
          Having server issues? These guys have MODX Hosting perfected - SkyToaster
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Is the code you posted placed into snippets & chunks in MODX? Or is it the source from another project? PHP code must be in a snippet, you'll then call the snippet from somewhere in your template or a resource, TV or chunk.

          What exactly have you tried, what do your snippets and chunks contain, and how are you calling it into MODX? Without knowing what you've tried, how it's set up, and how you're trying to pull it out, the rest of us are likely about as confused as you are.

            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 41906
            • 6 Posts
            Thank you very much for everyone - just done with eForm snippet smiley