We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27449
    • 211 Posts
    Hello,

    I was development a website that require webservices.
    I will have a search form that user fill and after I need to know the fields that the user field for development the code php for to communicate with the webservices.
    My doubt is how obtain I the fields of the user fill? The form is a chunk.
    and, the code php, for to communicate with the webservices, will have to development in a snippet?


    Please, can you assist me

    Thank you
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Yes. Like any form, you specify where the form’s values should be sent to be processed; in this case it would be either the same MODx document or a different one. In either case, a snippet would be used to get the POST values and process them.
        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
        • 27449
        • 211 Posts
        huh
        Sorry, but I don’t know how I obtain the fill field of a chunk in a snippet.

        For example:
        I have a field in a chunk with name: test1
        how I otain the value of this field in a snipped?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
            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