Re: Help with enter key in Forms

From: Date: Fri, 02 Jun 2006 04:48:52 +0000
Subject: Re: Help with enter key in Forms
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-237236@lists.php.net to get a copy of this message
Chris wrote:
George Babichev wrote:
Hello everyone, I am programming a blog, and most of it is done, except I have one issue. When I am typing in the form (before I click submit) and I click the neter key to make a space, the MySQL database does not recognize that space. How do I make it recognize it?
    
Unless you're stripping it out, it will recognise it. View HTML Source and you'll see the newline is actually in there. A "\n" is not a html newline so you need to convert it. What you want is http://php.net/nl2br Uhhh .... did you try this -- nl2br?
-- ***************************** Chuck Anderson • Boulder, CO http://www.CycleTourist.com *****************************

« previous php.general (#237236) next »