You are here: Re: php error « PHP « IT news, forums, messages
Re: php error

Posted by Matthew Weier O'Phinney on 10/21/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация