Php 如何为handler编写teamplate
处理程序未处理name=“ordertype”的select。我试着写普通代码,我的错误在哪里?请帮帮我,谢谢你花时间 (rd mailform.tpl) (rd mailform.php)Php 如何为handler编写teamplate,php,phpmailer,Php,Phpmailer,处理程序未处理name=“ordertype”的select。我试着写普通代码,我的错误在哪里?请帮帮我,谢谢你花时间 (rd mailform.tpl) (rd mailform.php) 全名 电子邮件 电话 空的 Консультация Заказ Оставь заявку сейчас! 在rd-mailform.php文件中,变量名中有一个下划线,因此将详细信息分配给未使用的新变量。您的OrdertypeState标记上也缺少一个# 你有 $_template= str_repl
全名
电子邮件
电话
空的
Консультация
Заказ
Оставь заявку сейчас!
在rd-mailform.php文件中,变量名中有一个下划线,因此将详细信息分配给未使用的新变量。您的OrdertypeState
标记上也缺少一个#
你有
$_template= str_replace(
array("<!-- {OrdertypeState} -->", "<!-- #{FromOrdertype} -->"),
array("Ordertype:", $_POST['ordertype']),
$template);
$\u模板=str\u替换(
数组(“,”),
数组(“Ordertype:,$\u POST['Ordertype']),
$模板);
而不是
$template= str_replace(
array("<!-- #{OrdertypeState} -->", "<!-- #{FromOrdertype} -->"),
array("Ordertype:", $_POST['ordertype']),
$template);
$template=str\u replace(
数组(“,”),
数组(“Ordertype:,$\u POST['Ordertype']),
$模板);
谢谢!在rd-mailform.tpl中,一切正常?:)您的OrdertypeState标签上还缺少一个#
,我将更新我的答案。
$template= str_replace(
array("<!-- #{OrdertypeState} -->", "<!-- #{FromOrdertype} -->"),
array("Ordertype:", $_POST['ordertype']),
$template);