I have a 'shout box' where users can type a message, click submit, and it is displayed on the page from the information sent to my database. The area where it is displayed, however is a rather narrow table, only capable of holding around 20-25 characters before it reaches the edge of the table. The way HTML is displayed is that if something is too long, it expands the table automatically.
For example, If I was to type ############### another 20 times, the table in which I have posted will expand and skew the page.
Should I use Regex in an attempt to ensure this doesn't happen?
How should I deal with too many characters in one line?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
wordwrap() and set some overflow style points.