Date: 08/09/00
- Next message: Philippe Paravicini: "RE: [PHP] PHP with MySQL"
- Previous message: Kevin Obbayi: "[PHP] any ideas on OCI8 config with WIN"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Beau Hartshorne wrote:
>
> Hi,
>
> When I try to execute form code that looks like this:
>
> <FORM METHOD="post" ACTION="<?php echo $php_self ?>"> [...] </FORM>, I get
> this error in Netscape Navigator/Comunicator Mac/PC version 4.5:
>
> "Method Not Allowed
>
> The requested method POST is not allowed for the URL /wsm/index.html."
>
> It only delivers this message if the browser is NN. IE works fine. If I
> change the $php_self variable inside the form tag to the actual location of
> the php script, it seems to work, but other problems seem to arise and it
> seems like a bad way of doing things.
Two things I can think of:
1) $php_self should be $PHP_SELF since PHP variables are case-sensitive.
2) You're using $PHP_SELF in a function and have forgotten to declare it
as a global variable.
/Niklas
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Philippe Paravicini: "RE: [PHP] PHP with MySQL"
- Previous message: Kevin Obbayi: "[PHP] any ideas on OCI8 config with WIN"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

