PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Ok ONE more question... I am just wondering how I would make a function to take a textarea form value and format it before it goes into a database (with the returns as <br>, etc.) Take it and put it back into a form when edited without <br> commands, etc.
hmm... well, I'm not sure if I'm getting this right. So this nl2br() function takes <textarea>/user formatted text with just returns (no html tags) and puts <br> and <p> where the single and double returns are?
ok... so i got that to take the text area formatted text and put it into the DB with <br /> tags all over the place so how do I get rid of those to put it back into the text area when being edited?