Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New advice on how to store forms

Status
Not open for further replies.

MaxGeek

Technical User
Jan 8, 2004
52
US
Okay, I want to create a system that will display different forms that I have.

I want to save each form individually in an external file and load them from a main file. Like loading an XML file.
I want to do it this way to make it easier to add new forms.

Would it be possible to save the HTML for each form into a XML file or another type of file, then read it and have it display the code?

I was thinking XML files would have problems storing HTML code because of the tags.
 
I don't know much about XML, but couldn't you simply have the HTML files stored as plain text and loaded via file handling? If all you want to do with it is echo display it to a text box or something similar, that would be the easiest alternative, I think. If you were also trying to give the user an example of what the web form would look like, you could either screen capture it and have a thumbnail of it for their appraisal, or you could simply load the html file into the default browser (or perhaps a minibrowser within your app) and let them see the actual code in action.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top