From:             jfishersmith at dialectsolutions dot com
Operating system: Windows 2000, NT
PHP version:      4.3.10
PHP Bug Type:     HTTP related
Bug description:  Notice: Undefined variable: HTTP_REFERER

Description:
------------
Since I installed PHP 4.3.10 and 5.0.3 the HTTP_REFERER produces the
following error "Notice: Undefined variable: HTTP_REFERER in
c:\inetpub\wwwroot\PHP\PHP_2party.php on line 444"

The same code has worked successfully in previous versions of PHP.

Is this something that should work still or has it been deprecated?



Reproduce code:
---------------
<?
$againLink  = $HTTP_REFERER;
?>
<p><a href='<?=$againLink?>'>Another Transaction</a></p>


Expected result:
----------------
The code should create a hyperlink back to the previous page. It is done
in this manner as different HTML pages call this one transaction page.

Actual result:
--------------
The error indicated above is written to the screen and the hyperlink is
not complete. For example the incomplete hyperlink is shown as:
http://localhost/PHP/ instead of:
http://localhost/PHP/PHP_2party_Order.html This means the browser does not
return to the original location when the hperlink is clicked.

-- 
Edit bug report at http://bugs.php.net/?id=31340&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31340&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31340&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31340&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31340&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31340&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31340&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31340&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31340&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31340&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31340&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31340&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31340&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31340&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31340&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31340&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31340&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31340&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31340&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31340&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31340&r=mysqlcfg

Reply via email to