PHP Ninjas: Easy PHP w/202 Question

Status
Not open for further replies.

Spliffic

Loves Cron Jobs
Apr 5, 2008
1,214
27
0
VanCity
Guys, I have a quick question I was hoping someone could help me out with.

I have a 202 link, along the lines of this:
Website Hosting - Mysite.com

How do I take the data in this URL and redirect it to another page?

For example, the Website Hosting - Mysite.com is the destination URL, but I want to redirect the user from Website Hosting - Mysite.com to travel with the 202 variables still in tact.

I know this is quite simple but I'm a clueless when it comes to PHP. Any help would be really appreciated. Thanks.
 


It's not really quite cut and dry. Prosper/Tracking202 stores your keyword and passed a subid variable that you use to track conversion. So you'd have to query the database for the subid to get the keyword and pass it into the next page.

The flow looks something like this:
Adlink->tracking->First Page(query the database get keyword)->Execute a header redirect including variable in name.

header("Location: www.somedomain.com/somepage.php&keyword=" . $keyword);

Although I'm not willing to write the whole solution right now, if someone doesn't post it by time I wake up tomorrow I'll get it square.
 
Thanks guys. Sorry about my original post as WF now parses the URL to display the title of the actual website (which was obviously just used as an example)

Rage9: your understanding is correct. I want to be able to "carry over" the parameters passed from the Original URL (from my ad) --> Redirect temp page --> Destination Page.

So if a sale is made on the Destination Page, I would like to be able to identify which Original URL (adcopy) the sale came from.

Would any of the code examples used above work? My understanding is that the Redirect temp page would need to first take the parameters passed from the Original URL, store them, and then pass them in the redirect over to the destination page. I know that 202 does some stuff behind the scenes as you also redirect to the 202 domain during the second step.
 
Thanks guys. Sorry about my original post as WF now parses the URL to display the title of the actual website (which was obviously just used as an example)

Rage9: your understanding is correct. I want to be able to "carry over" the parameters passed from the Original URL (from my ad) --> Redirect temp page --> Destination Page.

So if a sale is made on the Destination Page, I would like to be able to identify which Original URL (adcopy) the sale came from.

Would any of the code examples used above work? My understanding is that the Redirect temp page would need to first take the parameters passed from the Original URL, store them, and then pass them in the redirect over to the destination page. I know that 202 does some stuff behind the scenes as you also redirect to the 202 domain during the second step.


You could just take the $_SERVER['QUERY_STRING'] (assuming I spelled that right), remove the unneeded part, and re-attach the query string onto the next destination. Least thats how kblinker does it if you add any extra data onto the end of a redirect url.
 
Status
Not open for further replies.