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

shawn allen shawn at alterior.net
Tue Jan 14 12:06:00 CST 2003


quoth Tom Dell'Aringa:
> I have an odd request, I need to call a PHP page from a STATIC HTML
> page, AFTER the onLoad() event. Is this in any way possible?
>
> What I have is a order confirmation page. I have a cookie in JS in
> this page that has built a url like so:
>
> mypage.php?track=true;id1=5&id5=6
>
> I need to track this info. The confirmation page is NOT a php page at
> all. All I can do is manipulate JS/HTML code in that page.

Have you considered an image bug?

<img src="mypage.php?track=true;id1=5&amp;id5=6" width="1" height="1"
alt="" />

Then in mypage.php:

<?php
// your logic here
header('Content-Type: image/gif');
fpassthru('path/to/image.gif');
?>

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




More information about the thelist mailing list