mforan Posted December 22, 2006 Share Posted December 22, 2006 ok i have a problem that im not sure how to solve... basically i have a message system, the user inputs there message in to the form and it submits it into the database.what i was wondering is, is there anyway to make it so wen they press enter in the message form window it adds a <br> tag ???example:[b]Current input into the database is:[/b]this is a test message.[b]the current output is:[/b]this is a test message.if they actually pressed enter in the form message window, when they submit the form it would show:[b]in the database:[/b]this is a </br\> test message.[b]output result on page:[/b]this is atest message.if this isnt easy to understand im sorry. ;D Link to comment https://forums.phpfreaks.com/topic/31547-tags-in-messages/ Share on other sites More sharing options...
papaface Posted December 22, 2006 Share Posted December 22, 2006 use:[code]<pre> getfromdbcode </pre>[/code]e.g [code]echo "<pre>" . $row['2'] . "</pre>";[/code] Link to comment https://forums.phpfreaks.com/topic/31547-tags-in-messages/#findComment-146173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.