Can I call .html file as a form action instead of .php?
| From: | MI SOOK LEE | Date: | Mon, 03 Oct 2005 13:31:16 +0000 |
| Subject: | Can I call .html file as a form action instead of .php? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223582@lists.php.net to get a copy of this message | ||
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,