The Issue: The code below can't process parameters with spaces, percent signs or () in it.
Example URLS:
[login to view URL] (awf_first)=first&name (awf_last)=last&email=email
[login to view URL](awf_first)=first&name%20(awf_last)=last&email=email
The code below needs to be able to parse the parameters above and fill a form with the values.
Please don’t take away any functionality of the script, just add the ability to process the above URL examples.
-Thanks
Here is the code:
<script type="text/javascript">
function _id(e){return [login to view URL](e)}
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = [login to view URL](1);
var vars = [login to view URL]("&");
for (var i=0;i<[login to view URL];i++) {
var pair = vars[i].split("=");
// If first entry with this name
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = decodeURIComponent(pair[1]);
// If second entry with this name
} else if (typeof query_string[pair[0]] === "string") {
var arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ];
query_string[pair[0]] = arr;
// If third or later entry with this name
} else {
query_string[pair[0]].push(decodeURIComponent(pair[1]));
}
}
return query_string;
}();
if([login to view URL]){
_id('name_f-0').value=[login to view URL];
_id('name_1-0').value=[login to view URL];
_id('email-0').value=[login to view URL];
_id('password').value=[login to view URL];
_id('contact').value=[login to view URL];
}
// [login to view URL]
// ex: [login to view URL]
// [login to view URL]
// [login to view URL]
// [login to view URL]
// [login to view URL]
</script>
Hi, I (Myself a senior PHP Developer) have a team having experience of more than 10 years in developing web and mobile applications.
I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services.
I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget.
I am confident I can exceed your expectations and I would love to work on your project.
Warm Regards
~Team Shopify
Hello, I have gone through your requirements and interested in working for you. I am an individual freelancer and works professionally on site development. I'll be available as per your time preference.
I’m glad to answer any questions you may have!
Thank you for your time,
Raj