I need to use the GET method to get a variable off a URL String and then use that variable in my page.
Is there a simple way to grab a variable off the end of a string and then plug into information your page.
I need to use the GET method to get a variable off a URL String and then use that variable in my page.
Is there a simple way to grab a variable off the end of a string and then plug into information your page.
If you are using a GET URL such as:
http://www.com/page.php?a=1&b=2
Then in PHP you could get them by:
$a = $_GET['a'];
$b = $_GET['b'];
print("a is $a and b is $b"); // Prints a is 1 and b is 2
I think thats exactly what I mean, this an exerpt from the text concerning my issue:
"Your banner file should read the affiliate ID value that AffiliateShop will embed in the URL string of your banner page in the Affiliate Management Account. Use the GET method to read the AID value.
Your banner script should read the AID value and insert it to the appropriate location in the link code."
This is the Banner File with the AID appended:
http://www.gotvape.com/affiliatebanners.php?AID=054712
So I need to tranfer that AID (******) and allow the page to read it and insert into my banner linking code below:
<CENTER><a href="http://coldfusion.affiliateshop.com/AIDLink.cfm?AID=******&BID=7107" target="_blank" border=0><img src="http://www.gotvape.com/images/01/120x240_99combo_01.gif" alt="The Digital Vaporizer Gun & Bowl w/ Free Shipping" border=0></a></CENTER>
Not sure where I would insert this info or how I would really do it?
thanks, I know this is almost forum abuse asking this question, sorry!
We're here to help! You have a question, I can help. Not abuse. Anyway, try this:
<a href="http://coldfusion.affiliateshop.com/AIDLink.cfm?AID=<?php print($_GET['AID']); ?>&BID=7107" target="_blank" border=0>
thanks my man, that worked like a charm!
last issue is getting the get tag to not show up on my page:
$AID = $_GET['AID'];
that ends up on my page, how do I use it's benefits and not have it show up?
I ended up doing this:
<? $AID = $_GET['AID']; ?>