|
Posted by Stephen Johnson on 10/21/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*
--
[Back to original message]
|