Hello there, I am interested to know how can I update HTML paragraph with some ID with PHP script. Let's assume I have separated HTML page and PHP script. When user type text in textbox and click submit, it activates PHP script to change something. I had stupid idea (it's just for learning purposes), to search for word in text and when script finds it, replace it to be bold. I would use this function:
$find = $_POST['something']; //get user's input
// str_replace($find,'<b>{$find}</b>',HERE GOES CONTENT OF PARAGRAPH);
I repeat, this is only to practice a bit with PHP, I know that no one do finding words like this. Anyone have idea how to take this paragraph string from some ID?