Page 1 of 1

Adding specific variable to each link?

Posted: Fri Mar 04, 2011 12:12 pm
by jmansa
I was wandering if there was a way to add a variable to each link on my page without having to hardcode it?

My links could look like this:
mypage.com/index.php?var1=test
mypage.com/index.php?var1=test&var2=123
mypage.com/index.php?var1=test&var2=123&var3=ups


Now what I want is to add a variable at the end of these links like this:

Code: Select all

&app='.$app.'
Can this be done without hardcoding every link on my page (hundreds)?

Thanks in advance :-)