HI I have a issue
I have a text box, and I need some how, that every time the user press the enter key, to make a space in the text that he types, a <br> tag is inserted at the end of the text, so when I call it back it know where to make another line PLEASE help PLEASE keep it in php if posible. thank you
elamigosam
0
Light Poster
Recommended Answers
Jump to Postnl2br. Please search before posting
Jump to PostHi,
a built in function is php 4 and php 5 named nl2br means newline to breakline is used for these purposes.
you can use it like following
string1 nl2br(string2);
where string2 is the return value of nl2br with all the \n converted into br
…
Jump to Postcan you make a example, what I have is a text box that turns in to a variable, then the variable is saved in mysql DB,
it would realy help if you make an example. please...
Yeah, how about you read the link I posted. The PHP manual gives examples …
All 11 Replies
ShawnCplus
456
Code Monkey
Team Colleague
emarshah
0
Junior Poster in Training
elamigosam
0
Light Poster
ShawnCplus
456
Code Monkey
Team Colleague
elamigosam
0
Light Poster
ShawnCplus
456
Code Monkey
Team Colleague
elamigosam
0
Light Poster
somedude3488
228
Nearly a Posting Virtuoso
elamigosam
0
Light Poster
somedude3488
228
Nearly a Posting Virtuoso
elamigosam
0
Light Poster
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.