FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


New line in post





Roald
I've got a form and when someone types <enter> for a new line this isn't stored in the database, is there some method (sure there is) to solve my problem?
qscomputing
Could you post your code please?
Roald
It's not much of a code: just a textbox and a database connection, cleaning the post from tags,... putting it in the database.
sonam
Change it in <br />
Examples is here:

http://www.frihost.com/forums/vt-69717.html

Sonam
Roald
That's what I needed, I thought of something like that but I didn't find it.
DanielXP
try using the nl2br() function.
manum
translate \n to <br /> using regex
Related topics
Help with Website
Not Voting is Reasonable for People Who Want Freedom
three word game
AMD LIVE! Logo Leaked, Launch Imminent
New/Recruiting clans
Al Gore = :OWNED: (again)
Technical problem... help with this line of code?
Improvements needs to be done!!!
50FRIH for making me correctly post in Wordpress Blog.
Do we have a soul?
New personnal post list format
PHP echoing need help with email post form.
[request][html+js]please find the error in this code
Textbox - line break problem
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.