大家好,本人初学php,关于html和php代码嵌入有点不明白,
举个例子:
there were some problems with the form you submitted.please complete the fields highlighted below and click send details to resend the form.
thanks for choosing to join the widget club. to register, please fillin your details below and click send details. fields marked with an asterisk(*) are required.
为什么这里遇到“}”就把它单独放置在中。为什么不能写成这样?
}
非常感谢,解疑答惑!
回复内容: 大家好,本人初学php,关于html和php代码嵌入有点不明白,
举个例子:
there were some problems with the form you submitted.please complete the fields highlighted below and click send details to resend the form.
thanks for choosing to join the widget club. to register, please fillin your details below and click send details. fields marked with an asterisk(*) are required.
为什么这里遇到“}”就把它单独放置在中。为什么不能写成这样?
表示开始输出html,
可以这样:
there were some problems with the ....
thanks for choosing to join the widget club....
语言php的语法起始标签就是 php的语言决定必须这么写!!!