#19893 [Com]: Output not displayed with $_SERVER

From: Date: Mon, 14 Oct 2002 12:52:08 +0000
Subject: #19893 [Com]: Output not displayed with $_SERVER
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22364@lists.php.net to get a copy of this message
ID: 19893 Comment by: michael.mauch@gmx.de Reported By: pickleman78@sbcglobal.net Status: Feedback Bug Type: Scripting Engine problem Operating System: WIndows ME PHP Version: 4.2.3 New Comment: Is this just I typo in your bug report or is this copied and pasted from your actual file? <form action=<?php echo($_SERVER('PHP_SELF']); ?> method=post> ^ Should be: <form action=<?php echo($_SERVER['PHP_SELF']); ?> method=post> Previous Comments: ------------------------------------------------------------------------ [2002-10-14 01:05:25] cynic@php.net try it with a different client, like wget or cURL. also, what does this script output? <?php error_reporting(E_ALL); header("Content-Type: text/plain"); print_r($_SERVER['PHP_SELF']); ?> ------------------------------------------------------------------------ [2002-10-13 23:18:07] pickleman78@sbcglobal.net I sem to have this problem. I recently upgraded to PHP 4.2.3. Since it has register_globals turned off, I went through and attempted to modify my code to the new format. I seem to keep having this one problem though. When I view this in a browser(IE 5.5) <form action=<?php echo($_SERVER('PHP_SELF']); ?> method=post> it will not give me any output, no warnings, no errors, nothing. When I isolated just this piece of code, and put it in a seperate document, it should have had the output of <form action=mypage.php method=post>, but for some reason it would not parse it. I have no clue why this is happening. Is it a bug, or am I just stupid? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19893&edit=1

« previous php.bugs (#22364) next »