Hello,
Perhaps my question don't fit on a php mailing list and perhaps do it
better in a html mailing list, but sure there are people
here who knows how to solve my little problem:
I have made a little web (1)
page using php where the users can write their messages in a <form
action="add.php">.
The add.php take the contents of the form and do the necessary to save the
data in a database.
All works fine.
I have made another web page (2) in php that reads the
database and shows the content in a table structured web page.
The Problem
============
The web Page (1) uses a <TEXTAREA> to permit the users write their things.
If one user writes something like "aaaaaaaa" and the
sentence has 200 characters 'a' without any <br> or enter '\n' then
in web page (2) the table becomes "too fat" (like <table
with="2000">, for example).
The Question
=============
How to break the large sentence to avoid the "table enlargement".
what have i to do?
- Write a little function in php that inserts "<br>'s" every 50 characters
of the large sentence?
- Or there is something easier in html that is able to
"lock" the table width?? In that case... what?
Example
=======
user writes: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
in the web must appear something like:
table width
|--------|
aaaaaa
aaaaaa
aaaaaa
aaaaaa
It's a silly question, but I'm a really newbie php/html-user :).
Thanks in advance,
+------------------------------------+
______ __
(, / ) , (__/ )
/---( _ _ _ _ _ /
) / ____)_(/_(_(_(/___(__(/_) /
(_/ ( (_/
+-----------------------------------+
| Registered Linux User: 264283 |
+-----------------------------------+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php