Title: Passing Variable using URL
Last modified: December 14, 2016

---

# Passing Variable using URL

 *  [4nodestechnologies](https://wordpress.org/support/users/4nodestechnologies/)
 * (@4nodestechnologies)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/passing-variable-using-url/)
 * Dear
 * I am using this JavaScript function for passing variable in URL
 * (function ($) {
    var label = “Details”; var detailPageUrl = “[http://your-site/2016/02/04/details-page/&#8221](http://your-site/2016/02/04/details-page/&#8221);;
   detailPageUrl += (detailPageUrl.indexOf(‘?’) === -1) ? “?st=” : “&st=”; $(‘td[
   title=”submit_time”] div’).each( function () { var url = detailPageUrl + $(this).
   html(); var link = ‘[‘ + label + ‘](https://wordpress.org/support/topic/passing-variable-using-url/&apos; + url + &apos;?output_format=md)‘;
 * This Script is working good but this script passing one variable through URL.
   
   I want multiple variable passing through URL. Is there any code that u refer 
   me.
 * Thanks

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

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/passing-variable-using-url/#post-8561601)
 * if you have another variable “x” with value “2” then add it to the URL:
    `detailPageUrl
   += "&x=2";` as the 5th line.
 *  Thread Starter [4nodestechnologies](https://wordpress.org/support/users/4nodestechnologies/)
 * (@4nodestechnologies)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/passing-variable-using-url/#post-8562311)
 * this code is not working
    Multiple parameters means like database value [title
   =”submit_time” ] [other field] not custom variable number. I want these multiple
   database variables passing through URL

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

The topic ‘Passing Variable using URL’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [4nodestechnologies](https://wordpress.org/support/users/4nodestechnologies/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/passing-variable-using-url/#post-8562311)
 * Status: not resolved