[英]Use php inside HTML mailto link
我正在使用 HTML mailto 链接,并希望在里面使用 php 在电子邮件中显示 $_SESSION[''] 信息。
<p>You do not currently have permission to access this tool.</p>
<p>Please contact admin at
<a href="mailto:test@gmail.com?
&subject=Requesting%20access%20to%20the%20page_access%20tool
&body=Hi,%0D%0A%0D%0AThis%20is%20<?php$_SESSION['email']?>.%20Please%20provide%20me%20access%20to%20the%20tool.">
uas.hub@gmail.com</a>
to request access to this page.</p>
目前这显示在电子邮件中: This is <?php$_SESSION['email']?>
。 请让我访问该工具。
如何仅显示电子邮件而不显示所有 php 代码?
您的代码中没有echo
。
<?php echo $_SESSION['email']; ?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.