Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/294.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.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 当我的电子邮件表单脚本成功返回时,如何返回绿色复选标记图标_Php_Css_Validation_Email - Fatal编程技术网

Php 当我的电子邮件表单脚本成功返回时,如何返回绿色复选标记图标

Php 当我的电子邮件表单脚本成功返回时,如何返回绿色复选标记图标,php,css,validation,email,Php,Css,Validation,Email,我有一个简单的php电子邮件脚本。这将返回一条简单的文本消息,说明电子邮件已成功发送。我想在它旁边添加一个绿色的复选标记图标 我尝试将其作为imgsrc包含,但似乎输出仅被识别为纯文本 $responseCompleted = 'Form successfully submitted. <img src="http://www.mywebsite.be/img/vink.png"><br>'; $responseCompleted='表单已成功提交'; 那么我怎样才能

我有一个简单的php电子邮件脚本。这将返回一条简单的文本消息,说明电子邮件已成功发送。我想在它旁边添加一个绿色的复选标记图标

我尝试将其作为imgsrc包含,但似乎输出仅被识别为纯文本

$responseCompleted = 'Form successfully submitted. <img src="http://www.mywebsite.be/img/vink.png"><br>';
$responseCompleted='表单已成功提交
';

那么我怎样才能添加图像呢?

你的引号中有引号,你不能添加。你可以在外场使用单打,在内场使用双打:

$responseCompleted = 'Form successfully submitted. <img src="http://www.mywebsite.be/img/vink.png"><br>';
或者这个:

$foo = 'this is 'just' a test';
但你可以这样做:

$foo = 'this is "just" a test';
这是:

$foo = "this is 'just' a test";

谢谢你,Alex,现在代码通过时没有错误。。。但是,是否不显示图像?只有文本部分。。。有什么建议吗?
$foo = 'this is "just" a test';
$foo = "this is 'just' a test";