怎样直接post表单里的内容到一个网址去?
<script type="text/jscript">
var uid = document.getElementById("uid").value;
</script>
<form method="POST" action="/home.php?uid=这里需要直接是表单里的数字">
<p><input type="text" name="uid" id="uid" size="20"><input type="submit" value="提交" name="B1"></p>
</form>
不知道如何写。。。求高手如何写???
------解决方案--------------------<form method="post" action="home.php">
<p><input type="text" name="uid" id="uid" size="20"><input type="submit" value="提交" name="B1"></p>
</form>
php通过 $_POST['uid']就可以获取了
------解决方案--------------------
那就别用form表单
<p><input type="text" name="uid" id="uid" size="20"><input type="submit" value="提交" name="B1"></p>
<script type="text/javascript">
var uid = document.getElementById('uid').value;
window.location.href = 'home.php?uid='+uid;
</script>