Hi,
I made a guest book but when someone enter a long comments without any space my display goes beyond th proper size i.e I need to scroll horizontally till the end of message. I'm using <pre> format for the display and don't want to use <textarea> display since it gives the border line in the message area. Is there any other way I can specify the size display? I'm also getting the comments information from mySQL database.
Thank you,
srijan
One way would be to take the data between the PRE tags and break it into an array (each line as an element, explode()/split() on "\n"). Then run wordwrap() or a variation and display the contents for each line.
Thanks for your help ken,
It seems that <pre> tag format have limitation As such using wordwarap have a fixed width for display depending on the textarea input.