Problem with $PHP_SELF on PWS

From: Date: Sun, 11 Aug 2002 14:21:52 +0000
Subject: Problem with $PHP_SELF on PWS
Groups: php.general 
Request: Send a blank email to php-general+get-112024@lists.php.net to get a copy of this message
Hello All, I have PHP installed on PWS running on a Windows 98SE m/c. When I invoke <form action="action.php" method="POST"> everything is fine and the form data is extracted correctly. When I try to embed the same script in the body of the form using <form action="<?php $PHP_SELF; ?>" method="POST"> I get "HTTP Error 405 Method not allowed. The method specified in the request line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting." I'm sorry if this is a "newbie" problem, but I can't for the life of me see what the difference is between having the method embedded or separate. Thanks in advance, John Brooks.

« previous php.general (#112024) next »