How do i get the enter(or return if you prefer) to display(i mean go to the other line)? cause i'm taking the news from a forum an showing them on the site.Do you mean this function?
<!-- m --><a class="postlink" href="http://us4.php.net/nl2brthis">http://us4.php.net/nl2brthis</a><!-- m --> is something like this, but it's not working. in the mysql database, the enter are showing(no symbol or anything, just skip a line) and in the forum, they managed to show the enter and i want to do the same. I didn't managed to locate exactly where they are showing this so i don't know how they do it.
P.s. forget it, it's working. just had to put it in the stripslashes function.
ThanksOh, I see what you're saying.
So basically you want some kind of symbol to appear whenever the press enter.
Like this for example:
_
?what does stripslashes do for showing enter? all it does it take the slash away form the quote/s
yuou have ot replace "\n" with <br /> when it goes into the db.It have nothing to do with the enter, but the forum add some slashes that needs to be removed.How about the stripslashes function???? what do you meanOriginally posted by SamKook
It have nothing to do with the enter, but the forum add some slashes that needs to be removed.
than it is not the stripslahses that made it work. just a play on words I guess my guess was that the stripslashes had removed something that was needed to make the nl2br function work correctly.
It was only a guess, but since it's the only thing i changed i just assumed that was the cause of the error.
<!-- m --><a class="postlink" href="http://us4.php.net/nl2brthis">http://us4.php.net/nl2brthis</a><!-- m --> is something like this, but it's not working. in the mysql database, the enter are showing(no symbol or anything, just skip a line) and in the forum, they managed to show the enter and i want to do the same. I didn't managed to locate exactly where they are showing this so i don't know how they do it.
P.s. forget it, it's working. just had to put it in the stripslashes function.
ThanksOh, I see what you're saying.
So basically you want some kind of symbol to appear whenever the press enter.
Like this for example:
_
?what does stripslashes do for showing enter? all it does it take the slash away form the quote/s
yuou have ot replace "\n" with <br /> when it goes into the db.It have nothing to do with the enter, but the forum add some slashes that needs to be removed.How about the stripslashes function???? what do you meanOriginally posted by SamKook
It have nothing to do with the enter, but the forum add some slashes that needs to be removed.
than it is not the stripslahses that made it work. just a play on words I guess my guess was that the stripslashes had removed something that was needed to make the nl2br function work correctly.
It was only a guess, but since it's the only thing i changed i just assumed that was the cause of the error.