我想将链接放入存储在变量中的句子中.. 怎么把链接? 因为我尝试使用echo ..但它没有用..
这是我的代码:
if($_POST['rb_elt_accommodation']=="Yes")
$accomodation_val .= "Participants must deal directly with the hotel. Please call the hotel direct at +xxxxxx. Details on accomodation booking are available"echo '<a href="http://abc.com">here</a>.'";
答案 0 :(得分:4)
if ($_POST['rb_elt_accommodation'] == "Yes")
{
$accomodation_val .= 'Participants must deal directly with the hotel.
Please call the hotel direct at +xxxxxx.
Details on accomodation booking are available
<a href="http://abc.com">here</a>.';
}
请注意我如何将您的回复引用字符从"
更改为'
这是为了在你的html字符串中允许"
。