If I understand what I think you're asking, you're trying to access the
results in Javascript of something the PHP script processed... use your php
script to spit out some javascript.  For example:

print "<script language='javascript'>\n";
print "$Result = ".$Results.";\n";
print "</script>";

-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 2:09 PM
Subject: [PHP] Can anyone jog my memory on HTTP_REFERER & Javascript


    I had found a way around the problem and it work, but when I enabled the
web security features, it messed up.  So, with some debugging and I found
the problem and I'm not sure how to find a way around it.  You see ....

    I use page1.php to do certain features but the problem is that PHP
execution get done before the file (non-PHP programming) in passthru('...')
get done later.  So, I can't get the result before PHP finish executing.
There, I came up with the Javascript where the non-PHP scripting can spit
out the Javascript code and the Javascript take care of it.  It work so
well.  To my dismay, the PHP pick up the HTTP_REFERER doesn't work because
HTTP_REFERER was all blank when Javascript use "location.replace('');" code.
So, it messed up the webpage.  Is there a way to get the HTTP_REFERER code?
Or a different Javascript code?  I mean there's no way to get the PHP
execution to pause while the non-PHP programming get done first.  Is there?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to