stuffradio Posted December 31, 2007 Share Posted December 31, 2007 I want to have it insert a linebreak in the textarea when you hit enter. Can you help me out? Thanks Link to comment https://forums.phpfreaks.com/topic/83806-solved-insert-line-break-in-textarea/ Share on other sites More sharing options...
cooldude832 Posted December 31, 2007 Share Posted December 31, 2007 tell me how u think php could do that if its prehypertext processing? Link to comment https://forums.phpfreaks.com/topic/83806-solved-insert-line-break-in-textarea/#findComment-426413 Share on other sites More sharing options...
stuffradio Posted December 31, 2007 Author Share Posted December 31, 2007 I see your point... I should've posted in the HTML or javascript section(if there is one, I forget). I didn't think PHP would do it, I thought Javascript would do it. Link to comment https://forums.phpfreaks.com/topic/83806-solved-insert-line-break-in-textarea/#findComment-426415 Share on other sites More sharing options...
jitesh Posted December 31, 2007 Share Posted December 31, 2007 nl2br(); Link to comment https://forums.phpfreaks.com/topic/83806-solved-insert-line-break-in-textarea/#findComment-426417 Share on other sites More sharing options...
stuffradio Posted December 31, 2007 Author Share Posted December 31, 2007 Thanks jitesh! I forgot about that function Link to comment https://forums.phpfreaks.com/topic/83806-solved-insert-line-break-in-textarea/#findComment-426418 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.