HI,
This is really simple content management I suppose. I want to let a user input some text via a form which updates text in a web page. I thought I would get the string from the user and then open the html page read through, it to a tag and then replace the existing text (up to an end tag) with the new text. Is this the way to go? Should I open it and make a change and then close it, or open and read out the whole file into a string and make a change to that and then write the whole thing back in? One more question, what would the handy functions for string replacement/comparison be.
Thanks for any help.
I should write something here.
This is really simple content management I suppose. I want to let a user input some text via a form which updates text in a web page. I thought I would get the string from the user and then open the html page read through, it to a tag and then replace the existing text (up to an end tag) with the new text. Is this the way to go? Should I open it and make a change and then close it, or open and read out the whole file into a string and make a change to that and then write the whole thing back in? One more question, what would the handy functions for string replacement/comparison be.
Thanks for any help.
I should write something here.