>From: "John Brooks" <[EMAIL PROTECTED]> >Sent: Sunday, August 11, 2002 10:21 AM >Subject: [PHP] Problem with $PHP_SELF on PWS
> 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. If you view source from the browser you'll see the action is empty. Use: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php