David Croushore

A Man in Progress

What the Jibberish After the ? in URLs Means

I never really gave it much thought, but when I see a URL pop up with a ? and then a bunch of jibberish behind it, I usually just assume it’s something totally arbitrary.  Turns out I’m wrong (who knew).  Not only does that jibberish contain valuable information, but now I can actually use it too.  This probably shouldn’t be exciting.

Let’s talk about a fictitious webpage:

www.davecroushoreisawesome.com/index.php?dave=awesome&response=totally

If you went to that link, and that was a real webpage, it’s possible to pull in the values “awesome” and “totally” which are stored in an array, with the names “dave” and “response.”

Awesome!

Totally!

  1. 30daysatatime posted this
Comments
blog comments powered by Disqus