title: How to pass whole query string into one single variable through ajax
body: <p>I have a website where I have to save search when I press the save search I have the whole query string like this <code>?s=&amp;variable1=&amp;variable2=</code> ... and over 100 other variables I want to take this whole query string and save into a single variable to save it inside database column url</p>
  <pre><code>var query=form.serialize
  </code></pre>
  <p>how to save whole query string into a single variable to pass it through ajax to php?</p>
  <p>The url is relative sometimes fields are about properties sometimes about cars sometimes about mobile phones so can't call every single one.</p>