I have been working on this for 2 days now. I have a form with a text box that allows 180 characters, if a user types in something with no spaces it wrecks my site since there is no space for the text to wrap in the table cell when it displays. I'm trying to come up with a regular expression that checks for spaces in the string, and if there are no spaces, to add a space after 50 characters this way the text will wrap properly. All my searches have lead me to trim() but I'm not trying to remove space. anyone have any ideas?
mission_PHP 0 Newbie Poster
ShawnCplus 456 Code Monkey Team Colleague
mission_PHP commented: Thanks you have helped rep added +0
mission_PHP 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.