The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help with preg_replace and regexp
Working on a small PHP mailer form project on Apache v1.3.36 to sent html-formatted mail.
Form is POSTed with message text in a textarea named COMMENT. Some code I'm adapting uses the following to strip linefeeds and replace with html breaks: Code:
$comment = preg_replace("/\n/","\n<BR>",$_POST[COMMENT]); I don't know beans about regular expressions. Can anybody help straighten this out? Or is there something else that needs to be done to have apostrophes show up correctly? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|