【问题标题】:How to insert a URL link into a PHP define tag如何将 URL 链接插入 PHP 定义标签
【发布时间】:2013-04-11 21:00:49
【问题描述】:
我是 php 的绝对新手,所以请温柔一点。
我有以下行...
define('TEXT_INFORMATION', '<b>Note:</b> You can check their rate calculator here, and you are welcome to contact us.');
我想放置一个指向邮局网站的 html 链接,其中显示“这里”,以及指向我的联系页面的链接,其中显示“联系我们”。请问怎么办?
【问题讨论】:
标签:
php
url
text
hyperlink
【解决方案1】:
您可以将单词包装在 HTML 锚标记中,如下所示:
define('TEXT_INFORMATION', '... <a href="YOUR URL">here</a> ...'
【解决方案2】:
这就是你要找的东西
define('TEXT_INFORMATION', '<b>Note:</b> You can check their rate calculator here, and you are welcome to <a href="your link">here</a>.');
在我放置“您的链接”的 href 标记中替换您与我们联系页面的链接