The abstract photography page on my photography website is accessed through a link like the following:
myphotographywebsite.com/abstract.html
This specific page utilizes a script that calls upon the Flickr API to retrieve my photos and information. The script includes lines similar to these:
{
photo_set: "abstract",
tags: "best"
},
Currently, my website has numerous pages and scripts, each dedicated to a different photo set. What I am aiming to achieve is consolidation by having one page with variables in the URL that can be utilized by a single script. For example, the link would look something like this:
myphotographywebsite.com/page.html?variable_1=abstract&variable_2=best
And the script would be modified as follows:
{
photo_set: "variable_1",
tag: "variable_2"
},
How can I successfully pass variables from the URL to a script functioning on that particular page?