Results 1 to 9 of 9
April 19th, 2006, 02:29 PM #1how to pass a url parameter to a php redirect?
kind of a rookie question:
if i want to add a parameter to an inbound url to my site, such as:
how can i append that id to the affiliate urls in my php redirect file?
so, when people link to my php redirect and go to the merchant site, i can do things like CJ sid tracking etc..
April 19th, 2006, 02:49 PM #2
The outbound link:
April 19th, 2006, 02:50 PM #3
April 19th, 2006, 02:52 PM #4
Now that will only work if they click off immediately.. if they browse around a few pages, the request will be gone. In that case, I would cookie them with it
and then on the outbound link use
April 19th, 2006, 02:57 PM #5
so i put the setcookie info in the redirect file?
April 19th, 2006, 03:11 PM #6
I would put the setcookie in a routine that is loaded with EVERY page.. so no matter what page they land on, they will get a cookie if appropriate.. so in your global file:
and then in the redirector, add this part on to your CJ link
Sorry if it is confusing but I'm not sure if you actually have a site for people to browse or if they are forwarded on immediately. If you do not have a site for them to browse, you can just use the first little snippet I posted and not worry about the cookie.
April 19th, 2006, 03:19 PM #7
April 27th, 2006, 07:15 PM #8
so...it would look like?
<?php if ($_REQUEST['id']) setcookie("requestid",$_REQUEST['id'],time()+(86400*365),"/"); ?>
April 27th, 2006, 10:06 PM #9
By breeke in forum Programming / Datafeeds / ToolsReplies: 3Last Post: April 29th, 2010, 06:48 PM
By peedtih in forum Rakuten LinkShare - LSReplies: 9Last Post: April 13th, 2004, 09:40 AM
By newemail in forum Rakuten LinkShare - LSReplies: 1Last Post: December 4th, 2003, 04:24 PM
By newemail in forum Commission Junction - CJReplies: 6Last Post: December 4th, 2003, 09:47 AM