用< br>替换表单输入标签 [英] Replace form inputs with <br> tags
本文介绍了用< 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?!
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | 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?!
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号
主题标题*帮助!!! *替换。
什么是好主题标题
Thread Title *Help!!!* Replaced.
What makes a Good Thread Title
这篇关于用< br>替换表单输入标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文