More HTML-related, but it's within my ColdFusion application,
so...
I have a standard text field (INPUT TYPE=TEXT) with a
MAXLENGTH value... nothing fancy. Everyone knows that text fields
(not to be confused with TEXTAREA) do not accomodate line breaks.
On occasion however, I'm finding rows in our database where the
user somehow managed to split what they've entered into two lines,
for example:
John Smith has
a red car.
How is that even possible? I could easily write a quick
script to remove hard returns in the data being submitted, but I'm
more curious as to how it's possible (plus I don't feel like
implementing a script on ever text field in my application). I've
tried pasting in two-lines of text, no go. Shift + <Enter>
doesn't work either. From what I can tell it's just a normal line
break. Any ideas?