Re: Help with enter key in Forms
| From: | Chris | Date: | Fri, 02 Jun 2006 01:10:45 +0000 |
| Subject: | Re: Help with enter key in Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237231@lists.php.net to get a copy of this message | ||
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 -- Postgresql & php tutorials http://www.designmagick.com/