I am creating an update form for a database and one of the input fileds is retrieving and updating text-type data.
The problem is that the text(varchar) data in the database contain line breaks and so by using a <input type="text"> field, i can only see the first line of the text that is stored.
Also i can't submit text with line breaks because naturally when i hit "enter" the update is activated.
I think i have to use a <textarea> field. But how can i view the text in the database from that field (there is no such thing as "value" attribute for that field)?
The problem is that the text(varchar) data in the database contain line breaks and so by using a <input type="text"> field, i can only see the first line of the text that is stored.
Also i can't submit text with line breaks because naturally when i hit "enter" the update is activated.
I think i have to use a <textarea> field. But how can i view the text in the database from that field (there is no such thing as "value" attribute for that field)?
Comment