Re: php error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Stefan <shogun@xxxxxxxxxxxxxx>:
> 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@xxxxxxxxxx         | http://vermontbotanical.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux