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

What you describe is the natural behaviour in a textarea.

No scripting required.

Airshow

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.