I am trying to figure out a good way to record a click thru on my new site. I understand the concepts of having a second page which is redirected to that records the click, but I am stuck as to how to post across other data which I would also need to store (such as what link was clicked).
Here is the scenario.
The site lists advertisements for my clients. Each advertisement is in the form of a product which they have listed on their site (i.e. on their e-commerce store). My visitors find a product they are interested in and click to be taken to the site selling that product. All nice and simple..
However, when they click the link and get redirected to my "clickthru.php" page (for example), how do I pass to the clickthru.php script what the product ID is for that particular item?
(I have actually just realised that I could actually use $_GET and embed the information in the URL calling my "clickthru.php" which would pass the data but my preference is very very much on keeping as much data $_POSTed rather than the more insecure $_GET (although I do escape all mysql variables)).
Just to check though, is there anyway to post this without creating a <FORM> for the links.