Re: Can I call .html file as a form action instead of .php?

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

 



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@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
http://www.thelonecoder.com

*Continuing the struggle against bad code*
--

-- 
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