回显标签并通过电子邮件+ php发送代码 [英] to echo a tag and send the code through email+ php
本文介绍了回显标签并通过电子邮件+ php发送代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 php
变量,其中包含图像的完整源代码。
我想要的是,回显< img> ;标签及其属性 src
, height
& width
并通过以下邮件发送图片的源代码: -
I have a php
variable, which contains the whole source code of image.
What I want is, to echo the <img> tag with its attributes src
, height
& width
and send the source code of image through mail that is :-
<a href="'.SITE_URL.'"><img src="'.$concatpath.'" height="200px" width="200px"></a>
$imagename = abc.jpg;
$concatpath = SITE_URL."/uploads/affiliatesAdv/".$imagename;
$imagesrc = '<a href="'.SITE_URL.'"><img src="'.$concatpath.'" height="200px" width="200px"></a>';
现在,当我回显 $ imagesrc
时,它会显示图像。
我想要它的源代码。
如何做...
谢谢
Now when I echo $imagesrc
it display the image.
I want the source code of it.
How to do it...
Thanks
推荐答案
concatpath。' height = 200px 宽度 = 200px > < / a >
concatpath.'" height="200px" width="200px"></a>
imagename = abc.jpg;
imagename = abc.jpg;
concatpath = SITE_URL。/ uploads / affiliatesAdv /\".
concatpath = SITE_URL."/uploads/affiliatesAdv/".
这篇关于回显标签并通过电子邮件+ php发送代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文