note 31952 added to function.header

From: Date: Sat, 10 May 2003 00:26:43 +0000
Subject: note 31952 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-47802@lists.php.net to get a copy of this message
mikep's tip above fixes well the 'document contain no data' bug for Netscape, but only if you want to redirect to a plain URL. If you want to pass variables to a script within header( ), you can add an '&' before the '/': $Url = "Location: http://myserver.com/admin/index.php?var=".$var."&/"; header($Url); ..this way index.php can parse $var properly. P.S. If you concatenate too much variables within the header(), it may not get the last ones, so it's better to do it outside the function. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+31952 http://master.php.net/manage/user-notes.php?action=delete+31952 http://master.php.net/manage/user-notes.php?action=reject+31952

« previous php.notes (#47802) next »