Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何为handler编写teamplate_Php_Phpmailer - Fatal编程技术网

Php 如何为handler编写teamplate

Php 如何为handler编写teamplate,php,phpmailer,Php,Phpmailer,处理程序未处理name=“ordertype”的select。我试着写普通代码,我的错误在哪里?请帮帮我,谢谢你花时间 (rd mailform.tpl) (rd mailform.php) 全名 电子邮件 电话 空的 Консультация Заказ Оставь заявку сейчас! 在rd-mailform.php文件中,变量名中有一个下划线,因此将详细信息分配给未使用的新变量。您的OrdertypeState标记上也缺少一个# 你有 $_template= str_repl

处理程序未处理name=“ordertype”的select。我试着写普通代码,我的错误在哪里?请帮帮我,谢谢你花时间

(rd mailform.tpl)

(rd mailform.php)


全名
电子邮件
电话
空的
Консультация
Заказ
Оставь заявку сейчас!

在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);