I am searching for a solution to the following problem. Any suggestions how to handle it will be appreciated.
Users fill out a form (same form, different sites) and it is submitted to my site. As part of processing, I use a jump page where I log certain info (time, IP address, etc.), determine where to redirect the user (based on some pre-defined criteria) and use
header("location: http://xxxxxxxx.com/xxxxx.php");
to redirect the user to the destination page. It happens invisibly and there is no output to display on the jump page.
Now I have a new requirement. Need to add a pixel image on the jump (invisible) page before redirecting the user to destination page. Apparently, I cannot display the image before the headers as if the location header is used before the image tag, the image will never be called. (The image needs to be on the jump page as this is where we determine which pixel image to use for different users.)
Thanks in advance.