Title: Get parameters based on URL
Last modified: August 31, 2016

---

# Get parameters based on URL

 *  [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/)
 * Hi.
    Is it possible to load parameters from a given URL?
 * So, dropdown could be populated based on URL strings.
 * [https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/)

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

 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342003)
 * The choices can be based on anything you want them to be based on. This plugin
   does not do any of the generation, that part is up to you. See the example filter
   in the file [https://plugins.svn.wordpress.org/contact-form-7-dynamic-select-extension/trunk/cf7-dynamic-select-examples.php](https://plugins.svn.wordpress.org/contact-form-7-dynamic-select-extension/trunk/cf7-dynamic-select-examples.php)
 *  Thread Starter [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342030)
 * Ok, but if I retrieved a lot of values by URL with Dynamic Text extension, how
   can I merge all given input fields value into a single dropdown box?
 *  Thread Starter [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342117)
 * Any help with this issue?
 *  Plugin Author [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342124)
 * Sorry, but this isn’t something that I’m going to be able to help you with. If
   this was something simple like getting a list of categories or a list of posts
   or something, I might be able to help you with, but where and how the someone
   gets and returns the values for this field is something that each person needs
   to work out. I don’t know much about the dynamic text extension plugin and I 
   don’t use it very often, so I don’t know how it works or how you’d use it to 
   fill the select values of this field.
 * Looking at the other question that you posted (I won’t answer there so that maybe
   someone else will help you) there isn’t any way to collect values from other 
   input fields and supply them to the filter in this field, especially if you’re
   looking to get values entered into the form and not something that can be generated
   before the form is displayed. If the values are generated before the field is
   displayed then you would generate them the same way. There is not AJAX functionality
   in this plugin that can regenerate the selections after the fact. You might want
   to look at creating some JavaScript that will do this.
 *  Thread Starter [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342125)
 * Ok, thank you for support.
 *  [Nikhil VJ](https://wordpress.org/support/users/nikhilsheth/)
 * (@nikhilsheth)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342277)
 * I’m not doing this right now, but just sharing an idea: how about trying the 
   [explode() function](http://www.w3schools.com/php/func_string_explode.asp) in
   PHP?
 * For example, if your URL is returning say a comma-separated list, then using ‘
   explode()’ you could perhaps separate the terms into an array?

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

The topic ‘Get parameters based on URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-dynamic-select-extension.
   svg)
 * [Dynamic Select for Contact Form 7](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-select-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-select-extension/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Nikhil VJ](https://wordpress.org/support/users/nikhilsheth/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/get-parameters-based-on-url/#post-7342277)
 * Status: not resolved