Title: Array as a parameter
Last modified: August 21, 2016

---

# Array as a parameter

 *  [joanng](https://wordpress.org/support/users/joanng/)
 * (@joanng)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/array-as-a-parameter/)
 * Does this plugin work for parameters that are passed in the URL as an array? 
   For example [http://www.myurl.com?services%5B%5D=Physical](http://www.myurl.com?services%5B%5D=Physical)
 * How do I get the word Physical displayed? I have two other services that can 
   be passed in on the URL.
 * Thank you!
    JoAnn
 * [https://wordpress.org/plugins/url-params/](https://wordpress.org/plugins/url-params/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Jeremy B. Shapiro](https://wordpress.org/support/users/jeremyshapiro/)
 * (@jeremyshapiro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/array-as-a-parameter/#post-5046814)
 * 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](https://wordpress.org/support/users/joanng/)
 * (@joanng)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/array-as-a-parameter/#post-5046815)
 * Thanks for the response Jeremy. Let me update my question.
 * Here’s a sample URL:
    [http://www.myurl.com?services%5B%5D=Physical](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](https://wordpress.org/support/users/joanng/)
 * (@joanng)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/array-as-a-parameter/#post-5046816)
 * 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](https://wordpress.org/support/users/joanng/)
 * (@joanng)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/array-as-a-parameter/#post-5046855)
 * 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](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.

 * ![](https://ps.w.org/url-params/assets/icon-128x128.png?rev=979780)
 * [URL Params](https://wordpress.org/plugins/url-params/)
 * [Support Threads](https://wordpress.org/support/plugin/url-params/)
 * [Active Topics](https://wordpress.org/support/plugin/url-params/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/url-params/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/url-params/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [joanng](https://wordpress.org/support/users/joanng/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/array-as-a-parameter/#post-5046855)
 * Status: not resolved