用< br>替换表单输入标签
问题描述:
HI,我是PHP的新手,但我想格式化$ order和$ specialinstructions的输入,以便输入的/ n替换为< br /> html中的标签。我听说过使用nl2br()和Ive尝试过多次尝试使其工作并从许多不同论坛的条目中正确使用它。任何人都可以看看我的代码,让我知道如何实现这个?!
Im new to PHP completely but Im wanting to format the inputs for $order and $specialinstructions so that the /n of input is replaced with <br /> tags in the html. Ive heard about using nl2br() and Ive tried a rediculous number of things to try to make it work and use it properly from entries from many different forums. Can anyone please have a look at my code and let me know how I can implement this?!
展开 | 选择 | Wrap | 行号
答
order和
specialinstructions,以便输入的/ n替换为< br /> html中的标签。我听说过使用nl2br()和Ive尝试过多次尝试使其工作并从许多不同论坛的条目中正确使用它。任何人都可以看看我的代码,让我知道如何实现这个?!
specialinstructions so that the /n of input is replaced with <br /> tags in the html. Ive heard about using nl2br() and Ive tried a rediculous number of things to try to make it work and use it properly from entries from many different forums. Can anyone please have a look at my code and let me know how I can implement this?!
展开 | 选择 | Wrap | 行号
主题标题*帮助!!! *替换。
什么是好主题标题
Thread Title *Help!!!* Replaced.
What makes a Good Thread Title