Support » Plugin: URL Params » Array as a parameter

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy B. Shapiro

    (@jeremyshapiro)

    JoAnn, you can pass whatever you like in the querystring. It’s up to the page to then decide what to do with that data. Are you trying to prefill checkboxes or radio buttons or something?

    Thread Starter joanng

    (@joanng)

    Thanks for the response Jeremy. Let me update my question.

    Here’s a sample URL:
    http://www.myurl.com?services%5B%5D=Physical

    This is the call I have:
    [ifurlparam param=”services%5B%5D” is=”Physical”]Physical[/ifurlparam]

    It’s giving me a blank. If I remove the %5B%5D brackets, and just have services, the response is “Array”

    Any insights? Thanks.
    JoAnn

    Thread Starter joanng

    (@joanng)

    The bracket is getting removed from the URL parameter. the URL being passed has the physical open and close brackets on them – service[]

    Thread Starter joanng

    (@joanng)

    Jeremy – i wanted to circle back with you on this to get your thoughts.

    Here is a sample URL:
    http://www.myurlexample.com?services=Physical

    If I use this call from your plug-in:
    [ifurlparam param=”services%5B%5D” is=”Physical”]Physical[/ifurlparam]
    I get a blank response.

    However, if I use this call:
    [ifurlparam param=”services” is=”Physical”]Physical[/ifurlparam]
    I get back the response “Array”

    So, it’s as if some array element is getting passed back in the URL and if I don’t use the brackets, the response is just the word “array”, but if I insert the %5B%5D codes for bracket, it gives me a blank. How do I get the word “Physical” returned?

    JoAnn

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Array as a parameter’ is closed to new replies.