View Single Post
Old 10-09-2012, 11:22 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,658
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
For input, the only way to go to a new line is to use a <textarea> element which supports new lines. You can store this data raw as it will contain the linefeeds within it, but to display it in HTML you need to use nl2br to add <br/> to it.
If the input they are on is not a textarea, hitting the enter key will submit the form. You can't do anything to control that in PHP, that would require that JS be in use to respond to the event instead.
Fou-Lu is offline   Reply With Quote