Re: Can I call .html file as a form action instead of .php?
| From: | Jasper Bryant-Greene | Date: | Tue, 04 Oct 2005 02:23:33 +0000 |
| Subject: | Re: Can I call .html file as a form action instead of .php? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223585@lists.php.net to get a copy of this message | ||
Chris Shiflett wrote:
MI SOOK LEE wrote:Two things to add: 1/ Setting your webserver to consider all .html files to be PHP scripts is good and bad. It is sometimes considered good because it hides the fact that you're using PHP from potential attackers (but they'd have to know about a vulnerability in PHP first, so as long as you keep up-to-date...), but it's sometimes bad because it causes PHP to process all HTML files, even if they don't have any PHP in them, which slows things down. 2/ Passing parameters in the query string to a static HTML page can very occasionally be useful if you intend to do something with those parameters in JavaScript. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/Some guy told me that I can call the .html file as a form action instead of .php file.You can, but unless you configure your web server to consider .html files to be PHP scripts, it doesn't make much sense. HTML documents are static, so you wouldn't be able to do anything with the data.