[!--quoteo(post=364493:date=Apr 13 2006, 12:25 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 13 2006, 12:25 PM) [snapback]364493[/snapback][/div][div class=\'quotemain\'][!--quotec--] I guess this si the code you're using to convert [br] tp <br>? [code]$SUMMARY = str_replace('[','<',$data['SUMMARY']); $SUMMARY = str_replace(']','>',$data['SUMMARY']);[/code] If so change it to: [code]$SUMMARY = str_replace("[br]", "<br />", $data['SUMMARY']);[/code] Also why are you using [br] why not just hit enter to add a new line in your textarea, then use nl2br when you retrieve the data out of the database instead? Makes life so much easier. [/quote] its just an example, like [b] [u] ... I am trying to allow only a couple of html codes to be used in my registration script. Could you help me fix the issue? oops I didnt read the whole response... [code]$SUMMARY = str_replace("[br]", "<br />", $data['SUMMARY']); [/code] I tried that, and it still doent work.