Hi. I am trying to write a news posting script that uses PHP and a text file to store the data, and the text file is added to the page using an include command. I have adding data to the file working, I'm just not sure how to delete it. When the file is added, it's added like this:
<!--$title (name of news headline)-->
News and everything else collected from the form
<!--End $title-->
The $title is replaced with the title collected from the form. I want to be able to select the story or type the name of it, and have it delete everything in the text file that is between the two HTML comment lines. How would I do this? Thanks