Row goes out of boundaries in textarea

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Blaade
Forum Commoner
Posts: 29
Joined: Tue Feb 28, 2012 8:44 am

Row goes out of boundaries in textarea

Post 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!
litebearer
Forum Contributor
Posts: 194
Joined: Sat Mar 27, 2004 5:54 am

Re: Row goes out of boundaries in textarea

Post by litebearer »

Blaade
Forum Commoner
Posts: 29
Joined: Tue Feb 28, 2012 8:44 am

Re: Row goes out of boundaries in textarea

Post 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 />
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Row goes out of boundaries in textarea

Post by Celauran »

Code: Select all

<span>About Me</span><span><?php echo wordwrap($aboutme, 15, '<br />', TRUE); ?></span>
Blaade
Forum Commoner
Posts: 29
Joined: Tue Feb 28, 2012 8:44 am

Re: Row goes out of boundaries in textarea

Post by Blaade »

Thank you very much! It works! I love smart and helpful people :D
Post Reply