这样可以
<form action="/macd/key.php" method="post" target="_blank" onsubmit="return myfunc(this)"> <div class="s_ipt"><input maxlength="64" type="text" name="" value="123" /></div><button type="submit" class="s_btn">搜索</button> </form><script>function myfunc(f) { f.action = f.action + '?' + f.elements[0].value; f.submit(); return false;}</script>