[thelist] calling a php page after a static HTML page loads?

shawn allen shawn at alterior.net
Tue Jan 14 12:53:01 CST 2003


quoth Tom Dell'Aringa:
> --- shawn allen <shawn at alterior.net> wrote:
> > Have you considered an image bug?
> >
> > <img src="mypage.php?track=true;id1=5&amp;id5=6" width="1"
> > height="1" alt="" />
>
> I have been trying that. The problem is I can't seem to get the src
> dynamically written to the IMG tag from JS where its timed right so
> that when the IMG tag loads, it calls the right PHP page.

It looks like you're trying to write out the image src URI based on
cookies, using javascript. Assuming the static HTML document is within
the same domain as the PHP script, you should be able to just check
$_COOKIE... Have you tried that yet? At the very least, you could ditch
the javascript dependency ;)

--
shawn allen
  mailto://shawn@alterior.net
  phone://415.577.3961
  http://alterior.net
  aim://shawnpallen




More information about the thelist mailing list