• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • Last Modified:

PHP/GD2 Image tracking with additional value

How I can track unique emails I sent using PHP and GD ?

Basically I have function where I'm saving into DB stats (file - script.php) and the using GD2 imagecreate() imagepng() I'm creating image - data collection works fine, but making situation more complicated - I want to track some part of emails, so I want to put there some unique ID - and now the question :

I have following code - <img src="script.php" alt="" /> .... now I want to add something like: <img src="script.php?id=22" alt="" /> - and question is how to get ID - it's not a POST or GET - s what is it ?

Maybe there is no solution, and you have some other ideas/ways how I can do it ? Or maybe you have some simple JS solution ?
0
devpete
Asked:
devpete
1 Solution
 
under_dogCommented:
Using:

<img src="script.php?id=22" alt="" />

The id number will be in the $_GET array:

<?php

 $id = $_GET['id'];

?>

Perhaps your problem lies elsewhere in your code?
0
 
devpeteAuthor Commented:
Of course you have right - I just mixed up my variable name and I couldn't read this value - so I thought it must be some different array... ehhh doesn't matter ;]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now