//a.html:
<a href="b.php?bombID=94985a29-c8e9-4552-9be4-b01061443744 ">it's a bomb!</a>
//b.php:
if(md5($_GET['bombID'])==$_personal_DATA_from__anywhereyouset__){
echo 'go ahead!bomb is a joke here...';
}else echo 'do you like a bomb?';/* may be just use md5 to encode is not good , i use something more...*/

解决方案 »

  1.   

    有点明白了 <a href="b.php?bombID=94985a29-c8e9-4552-9be4-b01061443744 ">it's a bomb! </a> 
    bombID=94985a29-c8e9-4552-9be4-b01061443744 这样写??  有点晕了
      

  2.   

    直接用urlencode转译一下  在接受端再用urldecode转译回来就可以使用了
      

  3.   

    用escape unescape 
    或者直接 urlencode
      

  4.   

    <?php
    $userinput=1;
    $a=(urlencode($userinput));
    echo '<a href="mycgi?foo='.$a.'">dsfdsfdsfdsf</a>';
    ?> 
    这样用有问题吗??   怎么没有被加密啊
      

  5.   

    urlencode不是加密用的,要加密还是自己写吧。