<html>
<body>
<head>
<style type="text/css">
body{background:#D2D460;text-align:center;}
div{width:778px;margin:0 auto;background:#fff;text-align:left;}
</style>
</head>
<form action="index.php" method="post" >
<br>输入<br>
<input type="hidden" name='zz' value='http://www.baidu.com/s?wd=' />
<input type='text' name='wz' /><br/>
<input value="提交" name="sub" type="submit" />
<?php
$a=$_POST['zz'];
$b=urlencode($a);
$c=$_POST['wz'];
$d=urlencode($c);
$e=urlencode($d);
if ($a!=NULL) 
{
echo "<hr>输出<br>";
echo '<a href="http://gate.baidu.com/tc?from=opentc&src='.$b.''.$e.'"><h1>http://gate.baidu.com/tc?from=opentc&src='.$b.''.$e.'</h1></a>';
}
?>
</body>
</html>//我的url编码是两次进行的能不能改成一次性。
还有如果我要将输出来的结果再进行转成迅雷的链接,怎么改进?(迅雷专用链接编码 在原地址前面加"AA",后面加"ZZ"(不包括引号),地址变为 AAhttp://im.baidu.com/install/BaiduHi.exeZZ 此地址base64编码为 QUFodHRwOi8vaW0uYmFpZHUuY29tL2luc3RhbGwvQmFpZHVIaS5leGVaWg== 迅雷专链即在上地址前加thunder://,即 Thunder://QUFodHRwOi8vaW0uYmFpZHUuY29tL2luc3RhbGwvQmFpZHVIaS5leGVaWg== )//