Re: php error
| From: | Matthew Weier O'Phinney | Date: | Wed, 16 Feb 2005 17:57:18 +0000 |
| Subject: | Re: php error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208856@lists.php.net to get a copy of this message | ||
* 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