[英]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.