note 82552 added to function.header

From: Date: Wed, 16 Apr 2008 10:17:31 +0000
Subject: note 82552 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-138355@lists.php.net to get a copy of this message
Here is my explanation of why a URL given to the browser in the header does not have &amp; :- The &amp is required in the HTML presented to the browser, the header creates a URL which is outside the HTML and therefore is passed directly to the browser without being interpreted as HTML. Which means there are three kinds of slightly different addresses in PHP:- 1. Internal file system addresses like e.g. include ('/home/public/www.example.com/order.php') 2. HTML (&='&amp;') e.g. <a href="http://www.example.com/order.php?qty=12&amp;item=nuts">link</a> 3. Header redirect URL (&='&') e.g. header('location: http://www.example.com/order.php?qty=12&item=nuts'); ---- Server IP: 87.124.64.96 Probable Submitter: 88.110.16.125 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/82552 Del: integrated -- https://master.php.net/note/delete/82552/integrated Del: useless -- https://master.php.net/note/delete/82552/useless Del: bad code -- https://master.php.net/note/delete/82552/bad+code Del: spam -- https://master.php.net/note/delete/82552/spam Del: non-english -- https://master.php.net/note/delete/82552/non-english Del: in docs -- https://master.php.net/note/delete/82552/in+docs Del: other reasons-- https://master.php.net/note/delete/82552 Reject -- https://master.php.net/note/reject/82552 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138355) next »