Click to See Complete Forum and Search --> : post method not allowed on file
Hello,
When I try to use:
<FORM name="form" ACTION="schrijf.php" METHOD=POST>
I get the message that POST method is not allowed on schrijf.php.
I have tried a lot but does anybody know how I can fix this?
Grtz Tijg
vincente
02-06-2001, 08:18 AM
Does the webserver know *.php is CGI and not static html?
can you execute scripts at all?
I am also having a problem with using the POST method. I get this error:
HTTP 500 - Internal server error
Here is my code:
<form method="post" action="default.php">
Enter something here:
<input name="author" type="text" /> <input type="submit" value="Submit" />
</form>
and...
<?php
echo "You entered: " . $author;
?>
I've also tried this in place of $author:
HTTP_POST_VARS['author']
I am running PWS & NT4.0 Ser. Pack 6
Is this the same problem or something different?
Help!
laurel
02-06-2001, 10:00 AM
How can you check whether the webserver knows *.php is CGI and not static html?
(w/ IIS 4.0 on Win NT 4.0)
I solved the problem yesterday, but i do not recall HOW! (I tried so often, i don't remember what the problem was)
What I do know is:
- Look in your php.ini (on linux). There must be a line containing:
file_uploads=On
- The *.php - File doesn't have to be in your /cgi-bin/ - Directory. When my *php - file was there, apache was ****TING 500-Errors. It seems to be possible, though.
- At last something real important: CHECK YOUR ERRORLOGS!! ERRORLOGS ARE YOUR FRIEND! HORRAY FOR ERRORLOGS!
Tobi
codepo8
06-25-2002, 01:37 PM
Actually I found that it's the
register_globals = On
or Off setting,
if you set register_globals to On, the post works, if not, it tells you that the post method is not allowed.
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.