这是urlencode,一般不必自己解码的,通过环境变量$_GET['wd']即可取得原字符串。

解决方案 »

  1.   

    必须是get吗   我用post就不行  是吗
    有什么不同吗
      

  2.   

    我跟人家学做的baidu,google一起搜,老是baidu的结果会突然占领整个页面
    是怎么会事呢:http://philzxs.3j2.net/search.php  
    input.php
    ------------------------- 
    <form action="http://philzxs.3j2.net/search.php" name="inputbox" method="get" target="_blank">
    <input type="text" name="content"/>
    <input type="submit" value="17search"/>
    </form>
    --------------------------------------------------
    search.php
    -------------------------------------------
    <?php
    $content=$_GET['content'];
    ?>
    <frameset rows="100,400,*">
    <frame src="input.php" name="top"/></form>
    <frameset cols="512,*" noresize="0"/>
    <frame  src="http://www.google.cn/search?hl=zh-CN&q=<? echo $content; ?>" name="downleft">
    <frame  src="http://www.baidu.com/s?wd=<? echo $content; ?>&cl=3" name="downright">
    </frameset>
    <frame src="input.html" name="dixia"/>
    </frameset>