I have a php script which i use the html image to tag to load on pages like this http://pastebin.com/wPaLNNrR
My problem is only the the php code works when its loaded using the image tag but i have crucial html inside that needs to be run. If i access http://site.com/pxl.php?i=1 directly or using a iframe everything works how i want it to but if i load the html image tag as show here:http://pastebin.com/wPaLNNrR it stops working when it see html. I figure out a way to use CURL to get it working perfectly but when CURL gets to the website the cookies for the website doesn't get store in my browser which I really need to happen. So you have a choice in this script you can figure out why when i load http://site.com/pxl.php?i=1 using the html image tag it stops working when it sees html or why CURL doesn't get cookies and store in my browser.
I need someone who can provide a fix or workaround. Must speak and understand fluent english.