How does one address someone entering a crazy long string from breaking the page


In a Php generated page, how do you suggest that one should address the problem of users entering long strings, in a rather crazy fashion, from breaking the proper look (width) of the page?

For example take a look at this page:

As you see in this example the user has entered very long (crazy) strings such as:
which have caused the page to go beyond its intended width and look bad.


P.S., This site is currently under development and still not live for public use.

Sorry, that error has been fixed.
It was due to having added code without taking into account that non-members can also access this page.
So you are good to chck out this page now :slight_smile:

All I see in the example is this:

Notice: Undefined index: dd_user in /var/www/html/ on line 45
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1

PHP: wordwrap - Manual