我得添加一个参数,比如$ this-> rock ['link'];在一个网址。如何将php参数添加到url?
<a href="<? "http://iguang.tw/?from=service&mail=$this->mail['link']?>">
它没有工作。
我得添加一个参数,比如$ this-> rock ['link'];在一个网址。如何将php参数添加到url?
<a href="<? "http://iguang.tw/?from=service&mail=$this->mail['link']?>">
它没有工作。
<a href="http://iguang.tw/?from=service&mail=<?php echo $this->mail['link'];?>">
你的问题错过了太多的细节,但任务无论如何都是微不足道的。尝试:
<a href="<?php echo "http://iguang.tw/?from=service&mail={$this->mail['link']}"?>">
试试这个,你需要呼应PHP VAR
<a href="http://iguang.tw/?from=service&mail=<? Php echo $this->mail['link']?>">link </a>