怎么实现将用户输入文本框中的值传递给一个页面?急等!! <a href="#" onclick="location.href='cheshi.php?ID='+document.all.text.value" >link</a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 to:uGain(uGain.org),你的方法不行啊,地址栏里显示ID=undefined document.all.text.valuetext是你定的input的name <a href="#" onclick="location.href='cheshi.php?ID='+document.all.text.value" >link</a>没有问题啊多个值 用 <a href="#" onclick="location.href='cheshi.php?ID='+document.all.text.value + '&NAME=' +document.all.name.value " >link</a> index.html<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><form name="form1" method="post" action="index.php"><input type="text" name="d"><input type="submit" name="Submit" value="Submit"></form></body></html>index.php<?echo $d;?>用php+apache to:uGain(uGain.org 我能看明白你的意思,我再试试TO:hyw2008(游子意) 表单提交的方法的确能解决很多问题,不过能实现JS取值还是很有用 to:uGain(uGain.org 今天试了你的方法,完全可以,哪天不知道哪里出错了就是不行,这功能很有用,谢谢各位的帮组!! 输出PDF的问题 新配的环境,连接数据库出现错误,希望能等到大家的提示! 搞了很久都没成功,怎么样配置xp+apache+mysql+php 如何防止打开页面自动下载 PHP发邮件给hotmail收不到哦 累加到数组的问题 哪里有下载php 源代码的 网站 菜鸟继续提问..............PHP 我的服务器上突然出现了很多个 php.exe ,昏倒~~~~~~~~~ fopen无法正确创建新文件 打开的php的网页,却弹出下载的对话框!为什么?在线等(斑竹999) 探讨大家的开发时间!
text是你定的input的name
没有问题啊多个值 用
<a href="#" onclick="location.href='cheshi.php?ID='+document.all.text.value + '&NAME=' +
document.all.name.value " >link</a>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="index.php">
<input type="text" name="d">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
index.php
<?
echo $d;
?>
用php+apache
TO:hyw2008(游子意) 表单提交的方法的确能解决很多问题,不过能实现JS取值还是很有用