i have a question, again. Is there any possibility to adapt a textfield with the text that the user typed it. What i mean is the following:
- The User entered Data and saves it in the Database (Forum for example)
- he finds wrongs spellings in his text and wants to edit it.
- The edit page contains a textfield which contains the entered text. My question now is: Can you set the height of the textfield in dependence of the entered text.
The reason for that is that the user sees the entire text without scrolling...
is there any way to make this possible? I prefer PHP cause i'm not really good in JS (have never learned it)
Can anybody help me? Would be great thank you sooo much
sincerely
Mäc
___________________________ Warum denn so ernst??? Zaubern wir ein lächeln auf dieses Gesicht!
The only way I know to do that is to count the characters of the message and calculate the dimensions of the textbox according to it.
a) The results can only be a rough guess, basing on font size and font spacing.
b) The effort for doing this in PHP is almost the same as in JS, so it's up to you.