Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-29-2013, 02:06 PM #1
- Join Date
- Aug 2010
- Thanked 2 Times in 2 Posts
passing 'redirected from' variable?
I'm trying to work through an idea and figure out how to do it, if its possible.
What I have is a set of multiple paths to a single page, which in turn has an iframed form.
URL-1 is from an email, URL-2 is from a postcard, URL-3 is from a banner ad. (all on same domain, i.e.: www.website.com/url-1/ )
These all redirect to the "campaign" URL. how do I collect that information as a variable - I'd assume its possible, but how (using php or other solution)
Last edited by turpentyne; 08-29-2013 at 02:09 PM.
08-29-2013, 02:41 PM #2
are the 3 urls pages?
ie whats after website.com/?
if its litterally what you have
create an index.php in each folder www.website.com/url-1/index.php etc
and have them redirect to campaignurl/?source=url1 etc
and in the campaign page
$variable = $_GET['source'];
//script and page
?>There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Get Cloud Hosting now from only£59 / month