The page for abstract photography on my photo site uses a link like this:
myphotosite.com/abstract.html
That page uses a script to call on the Flickr API to fetch my photos & info. It includes a few lines like this:
{
photo_set: "abstract",
tags: "best"
},
My site currently has a ton of pages and a ton of scripts (one of each for each photo set). What I'd like to do is have one page plus variables in the url and one script which uses the variables. Following the example above, the link would be something like this:
myphotosite.com/page.html?variable_1=abstract&variable_2=best
And the script would be something like this:
{
photo_set: "variable_1",
tag: "variable_2"
},
How do I pass variables in a url on to a script used on that page?