|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-01 15:22 UTC] iliaa@php.net
[2003-11-01 17:31 UTC] sanondysie at tc17 dot com
[2003-11-02 14:23 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ This appears to be Windows 98 (all Win32??) only; it works on Linux. The problem is that the referrer uri is missing any arguments that might have been appended. For the attached sample, you need to Submit at least twice to see the problem. This was tested with an Xitami HTTP server. Reproduce code: --------------- <html> <head/> <body> <p> Referrer:<br/> <table> <tr> <td> PHP: </td> <td> <?PHP print $_SERVER ["HTTP_REFERER"]; ?> </td> </tr> <tr> <td> Javascript: </td> <td> <script>document.write (document.referrer);</script> </td> </tr> </table> </p> <form action= "<?php print $_SERVER ["SCRIPT_NAME"]; ?>" method= "get"> <input type= "hidden" name= "param" value= "value"> <input type= "submit"> </form> </body> </html> Expected result: ---------------- Both referrers should be identical. You need to click Submit twice to get a referrer supplying arguments. Actual result: -------------- PHP will show arguments missing.