Hi there guys,
I've got a form that I'm verifying. I want the user to be able to see the data they entered to check it. To do this, I'm trying to convert the return and newline tags to breaks to show up in the html page. Here's what I attempted to use, which I thought would work:
$convict_ex = strip_tags (strip_mq_gpc (substr ($_POST['convict_ex'], 0, 500)));
$convict_ex_br = str_replace ("<br>", "\r\n", mysql_real_escape_string ($convict_ex));
I thought this would solve my problem, but the newline tags are still showing up(no breaks).
Could someone tell me what I've done wrong?
thanks,
json