0

Hi, I'm pretty sure this would be something I'd need javascript for.
What i want to do is to recognize when a user presses the enter key while active on a text area and to insert a new line

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Airshow
0

What you describe is the natural behaviour in a textarea.

No scripting required.

Airshow

Edited by Airshow: n/a

0

That doesn't seem to be what i'm experiencing. could it be the way php interprets the data?

0

I've done some research into the issue an it sees the be php that isn't following form. But thnks for your help :)

It seems the line breaks were there, but PHP wasn't echoing them. For others with the same problem, nl2br() helped me out

Edited by ryan-t: n/a

0

Aha, so the problem was manifest in php not in the browser interface. You didn't say that.

Good old nl2br() to the rescue. Well done, good research.

Airshow

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.