I have a url input field where untagged text gets stored as a link like this:
$newwebsiteurl = '<a target="_blank" href="http://' .$_POST['newwebsiteurl']
. '">' . $_POST['newwebsiteurl'] . '</a>';
but now I want another form where the data can be edited and I want to echo back the information(from mysql) without the tags so basically the inverse of the above code I need to do something like this:
echo $info['category']
minus this part:
<a target="_blank" href="http://
<a target="_blank" href="xxxxx">*show_this_part_only*</a>
echo str_replace("/http:\/\//","",$_POST['newwebsiteurl']");For more clarity :