• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

creating HTML file with coldfusion?

New Here ,
Sep 19, 2006 Sep 19, 2006

Copy link to clipboard

Copied

I am trying to figure out how to make .htm files on the fly. I have a small form such as heading and I want it to use this dynamic information to create a .htm file and save it to the server. I wanted to use cffile, but I read that is only for text files.

Anyone know a tag that can save data as a .htm ?

Thanks in advance
TOPICS
Advanced techniques

Views

266

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 19, 2006 Sep 19, 2006

Copy link to clipboard

Copied

A htm file is a text file !!

See attached code. It's not tested

Ken

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

LATEST
Use ScareCrows suggestion.
I just personnally prefeer using <cfSaveContent> to concat strings, makes the code easier IMHO.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation