I am using a php custom code to send the html page content to a string $html. Then I make some changes to the data in that string and then ‘echo’ it back to the html.
The problem is that I get two versions of the html elements, one with and the other without the changes. the ‘echo’ function seems to append to the existing html page and not overwrite it. How can I replace and not append to the html page?
- The topic ‘how to replace html page content and not append with php 'echo'?’ is closed to new replies.