![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
How can I take user input & insert into an existing and separate html page?I'm new to programming and C++ and trying to build a basic webpage generator that takes user input from the command console and outputs it to a formatted html file.
So far I can accomplish the task with the following code, but its cumbersome and mixes the html code with the C++ code in the .cpp file: CPP / C++ / C Code:
Instead of the above way, I'd really like to be able to: 1. Format all of the html markup in a separate html file and use some sort of place-holder within the markup tags to represent user input (ex. <td>^page content^</td>) then.... 2. ...within the .cpp file have just C++ code that opens and searches the existing html template file, finds the place-holders, replaces them with the user input, then saves the edited file in a new directory to be uploaded to a server? I'd like to avoid having all the html mixed in with the C++ code. Any help is greatly appreciated! Last edited by LuciWiz : 17-Jun-2006 at 16:21.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|||
|
#2
|
|||
|
|||
Re: How can I take user input & insert into an existing and separate html page?You could create a class ( htmlmaker) which will have methods like
addHead,addBody and things like that. It will be very helpful for you to look at the methods of java SOAPFactory class to see the direction of my thought. |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The