Posted by Matthew Weier O'Phinney on 10/04/38 11:08
* Stefan <shogun@steffsworld.ch>:
> I've a strange problem
> When I try to send a form with method="POST" to a php-file I always get an
> HTTP 404 error.
> I really don't know why, because the file exists on the server.
What are you setting the action attribute to? Should be the path to your
script.
If the script is in the same directory as your form:
<form action="script.php" method="post"></form>
or, with a path absolute to the web document root:
<form action="/path/to/script.php" method="post"></form>
or, with an absolute URL:
<form action="http://example.tld/path/to/script.php"
method="post"></form>
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org
Navigation:
[Reply to this message]
|