I'm trying to remove a string of HTML from another string, but for some reason nothing happens and it doesn't get removed.
The code I'm using is:
$saveContent = str_replace('<input type="hidden" name="formID" value="'.$id.'" />','',$saveContent);
The string doesn't get replaced. I want to remove the hidden element before I enter it in a DB.
Am I missing something?