You are here: Re: [PHP] Can I call .html file as a form action instead of .php? « PHP « IT news, forums, messages
Re: [PHP] Can I call .html file as a form action instead of .php?

Posted by Stephen Johnson on 11/15/17 11:28

This should work fine -- more then likely you do not have your apache (or
whatever web server you use) configured to allow .html files to be parsed as
php files.

You will need to update your web server configuration.


On 10/3/05 6:31 AM, "MI SOOK LEE" <lmsook10@hotmail.com> wrote:

> Hello,
> Some guy told me that I can call the .html file as a form action instead of
> ..php file.
> So he said I could do something like this,
> echo "<td><a href=\"editStaff.html?id=$id\">Edit</a></td>";
>
> instead
> echo "<td><a href=\"editStaff.php?id=$id\">Edit</a></td>";
>
> editStaff.html and editStaff.php have the same content, only the file name
> is different. But if I do the former way(call editStaff.html as a form
> action), it doesn't work. It calls some files but looks horrible.
> So the advice of the guy was wrong, or did I do something wrong?
>
> Thanks,

--
Stephen Johnson
The Lone Coder

http://www.ouradoptionblog.com
*Join us on our adoption journey*

stephen@thelonecoder.com
http://www.thelonecoder.com

*Continuing the struggle against bad code*
--

 

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

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