|
|
Modify SubEthaEdit's mode/file extension mappings
i know you said not to ask why, but what about how? How the heck does your server parse the php, if its got .html on the extension? Did you tell it try to parse html as well? and if so, isn't that a bit inefficient?
Modify SubEthaEdit's mode/file extension mappings
He could specify .html files to be handled by PHP within a specific virtual host or even only within a specific directory. I doubt that he's having all .html's server-wide handled by PHP. I've done this myself in the past for a couple of reasons:
Modify SubEthaEdit's mode/file extension mappings
On a per directory basis you can use .htaccess files and specify: "AddType application/x-httpd-php .html"
Modify SubEthaEdit's mode/file extension mappings
Why the heck wouldn't you write a PHP page that both creates the form, and validates it as well? (e.g. posts it back to itself for error checking and submission.) That way, you've got the ability to re-generate the same form, filled out exactly the same way as the user filled it in a moment ago, except perhaps with red text on the column name where they failed validation, etc. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.29 seconds |
|