Page 1 of 1

Row goes out of boundaries in textarea

Posted: Mon Mar 12, 2012 10:57 pm
by Blaade
Hi!


I have a form which contains "About me:" textarea. The data is displayed on another page within website after submission. If someone fills in the textarea with a normal text and submits it, the text appears fine on the other page, no problems. If lets say someone enters "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" and submits, then on the other page the row with the "aaaa" goes out of boundaries, out of the layer, doesn't stop at a certain point and go to the next row.
Think i need some kind of validation script, white spacing validation or something, but i don't know what. If you can help out with anything i'll appreciate it.
Thanks!

Re: Row goes out of boundaries in textarea

Posted: Mon Mar 12, 2012 11:52 pm
by litebearer

Re: Row goes out of boundaries in textarea

Posted: Tue Mar 13, 2012 12:15 am
by Blaade
Thank you, but have any idea how to put that into this "mess":

Code: Select all

<span style="color:#E3E9F2;font-family:Courier New;font-size:13px;font-weight:bold;">About me:</span><?php echo '<span style="color:#EFF3F7;font-family:Courier New;font-size:13px;">'.$aboutme.'</span>'; ?><br /><br />

Re: Row goes out of boundaries in textarea

Posted: Tue Mar 13, 2012 5:42 am
by Celauran

Code: Select all

<span>About Me</span><span><?php echo wordwrap($aboutme, 15, '<br />', TRUE); ?></span>

Re: Row goes out of boundaries in textarea

Posted: Tue Mar 13, 2012 1:49 pm
by Blaade
Thank you very much! It works! I love smart and helpful people :D