<a href=" http://www.replicahandbagssales.com/{strtr($hotsearchone.keywords,' ','-') . 'html'}" 为什么不行呢 要怎么写呢?

解决方案 »

  1.   

    html嵌php:
    <a href=" http://www.replicahandbagssales.com/<?=strtr($hotsearchone.keywords,' ','-')?>.html">
      

  2.   

    调用php函数最好加上<?php  ?>
    比如:
    <?php
    function display(){
    printf("hello");
    }
    ?><html>
    <head>
    <title>
    </title>
    </head>
    <body><?php
    display();
    ?></body>
    </html>
      

  3.   

    html嵌php:
    <a href=" http://www.replicahandbagssales.com/<?=strtr($hotsearchone.keywords,' ','-')?>.html">这样也不行啊
      

  4.   

    <a href=" http://www.replicahandbagssales.com/<?=strtr($hotsearchone.keywords,' ','-')?>.html">sssssssssssssssssssss</a>
      

  5.   


    $ss="<a href=\" http://www.replicahandbagssales.com/".strtr($hotsearchone.keywords,' ','-') . 'html';
      

  6.   


    <a href="http://www.replicahandbagssales.com/".strtr($hotsearchone.keywords,' ','-') . 'html'>link</a>
      

  7.   

    晕,楼主不会是超链接也要说吧,我给的只是接着你问题里改的,以为你知道呢,你个超链接内容,再结束a标签就可以了</a><a href=" http://www.replicahandbagssales.com/<?=strtr($hotsearchone.keywords,' ','-')?>.html">超链接标签</a>