Subject: How to capture data from query string?
Posted on: 12/02/08 11:15pm
I'm looking for a way to capture data from a query string
of one of my staticpage Geeklog URL's, for pay per click
Here's how it would work...
When a user comes to my site from Google Adwords,
I can specify a unique landing page URL for each keyword.
For example, the landing page URL for a certain keyword
might look like so:
(I'm using SE friendly URL's on my static pages, with PHP enabled.)
From there, I'd like to capture the value for TC (shown above as 123), and append it to an affiliate link on the landing page.
From there, the affiliate tracking system will record the tracking code when a sale is made, enabling me to track the exact keyword code which generated it.
Now, I've tried using different variations of the following code to
capture the query string and append it to links on my landing pages, but I keep getting 403 errors when trying to add it to static pages:
<?php echo $_GET['TC']; ?>
Note that I've left of the opening php code to as the docs
recommend, but still get errors:
Any idea how I might accomplish this goal?
Geeklog - Forum