Skip to main content
Participant
September 19, 2006
Question

creating HTML file with coldfusion?

  • September 19, 2006
  • 2 replies
  • 359 views
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
This topic has been closed for replies.

2 replies

Inspiring
September 20, 2006
Use ScareCrows suggestion.
I just personnally prefeer using <cfSaveContent> to concat strings, makes the code easier IMHO.
Inspiring
September 19, 2006
A htm file is a text file !!

See attached code. It's not tested

Ken