Re: Help with enter key in Forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux