Newbie Issue blank result for .php correct display for .html version

From: Date: Sat, 16 Nov 2002 00:08:19 +0000
Subject: Newbie Issue blank result for .php correct display for .html version
Groups: php.qa 
Request: Send a blank email to php-qa+get-6895@lists.php.net to get a copy of this message
I'm going through a tutorial and results are when the file extension is .php it returns a blank display in IE 6 when the file extension is .html I get the correct display. This is on a Win2K system with IIS disabled, Apache/1.3.27 (Win32) PHP/4.2.3 The following added to httpd.conf at the end of the file LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php Other .php tests I have been working on which start out with <? work with no difficulty as a .php it displays an empty browser with no errors, if I change the extension to .html it displays as I think it should. Any ideas? and here is the start of what I have: <html> <head> <title>Guestbook</title> </head> <body> <center> <form action="<?php echo $_SERVER[PHP_SELF]; ?>" method="POST"> <font face="arial" size="1"> Name: <input type="text" name="txt_name">&nbsp; Email: <input type="text" name="txt_email"><br><br> Comment:<br> <textarea style="width: 75%" rows="10" name="txt_comment"></textarea> <center><input type="submit" value="Submit"></center> </font> </form> </center> </body> </html>

« previous php.qa (#6895) next »