Welcome to Geeklog, Anonymous Wednesday, June 19 2024 @ 02:35 am EDT

Geeklog Forums

How to capture data from query string?


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
campaign tracking.

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:

echo $_GET['TC'];

Any idea how I might accomplish this goal?


All times are EDT. The time is now 02:35 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content