HI,
I need help in baner system. infect i am creating pay per click type baner system where i give just html code to user and they can use that code in their sites. so i want that using that html code each time baner will display rendomly so i don this using this way
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
and in html code i use that way <img src="button.php?text=text">. so now using html code baner show rendomly but now problem is that i want also track baner click, so when user clcik on baner so i know that on witch baner user click, so i am giving url with html code so its statictic and cant get baner id so is there any way that i can get rendom image with url mean url aslo return when image return liek in above code.?
so i just give user this html code
<img src="button.php?text=text">. and when user put that so button.php code return user this code auto
<a href=demo.php?banerid=1234><img src=banner.gif></img></a>
or any better way for this thing , i am new user in php so confuse to handle this thing so if any one can gide me so i will be thankfull to him
Best Regadrs