Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Modify SubEthaEdit's mode/file extension mappings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Modify SubEthaEdit's mode/file extension mappings
Authored by: Thom on Jun 12, '04 03:43:57AM

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.

As far as the other suffix conventions -- I use .inc files for libraries of PHP code that are only to be included, never to be parsed as pages themselves, and I have a rule that prevents Apache from ever serving these pages directly. But other than .php, .php3 for legacy compatibility, or .html when I want to be sneaky... that's all I need, anyway.



[ Reply to This | # ]