Hi all,
I was just wondering what is the best way to assign a certain value to a variable according to a specific parameter in the URL.
For example, let's say I'm tagging backlinks to be implemented on an external website in this way www.mysite.com/page?source=externalsitename. I'd like to give the value "externalsitename" to a variable $Source so that i can call it from within my page templates to create dynamic content. For example, by adapting the landing page subheader to state "You were redirected from $ReferralSiteName". Shall I start from something like this in Page_Controller ?
--
if ($_GET['source'])
{echo htmlentities($_GET['source']);}
else
{echo ucwords("Standard content");}
--
Thank you!