Not beset by problems (yet)
I have a form textarea writing to a database field (mediumtext). Is there anything I can do so that if someone hits return while typing in the textarea a line break is inserted in to the database table? I want them to be able to type in this text area and create line breaks without tying in
In a form for modifying information in the database I have it displaying what is in the database right now. Two pieces of code that look the same don't seem to be working the same.
This one works:
This one doesn't:
The first one was a textarea from the beginning, but the second one started out as an input--I just changed it to a textarea today.
<br>. Thanks.In a form for modifying information in the database I have it displaying what is in the database right now. Two pieces of code that look the same don't seem to be working the same.
This one works:
<textarea name="product_description" rows="4" cols="24"><? echo "$product_description"; ?></textarea>This one doesn't:
<textarea name="product_usage_tips" rows="2" cols="24"><? echo "$product_usage_tips"; ?></textarea>The first one was a textarea from the beginning, but the second one started out as an input--I just changed it to a textarea today.
