如何用超链接传递参数? < href="b.htm?txt='+ txtname.value"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果TEXT是FORM中的话,那么设置FORM的提交方法为GET(METHOD=GET),处理页面为B.HTM(ACTION=B.HTM)就可以了!实际上等同于提交一个URL:http://www.yourdomain.com/yourpath/b.htm?textName=textValue a.htm中有以下的内容:<script>function tootherpage(url){ location.href=url+"?text="+document.form1.textfield1.value;}</script><a href="#" onclick="tootherpage("b.htm")">to page b</a><form name="form1" method="post" action=""> <input type="text" name="textfield1"></form>b.htm中包含以下的内容:<script>url=String(window.document.location);para=url.substring(url.indexOf("=")+1,url.length);alert(para);</script> to net_lover(孟子E章) 好像不能实现,能说具体点吗?是不是格式的问题,我的第二页用的是b.php的to Estyle(靳田) 我要用的是超链接 function checkuser(){ window.open("checkuser.php?text="+document.form1.text.value,"sd","left=100,top=200,width=200,height=100,resizable=0");} PHP输出PDF文档内容 PHP 正则匹配 在线等 php jquery问题 数据库SQL语句 单引号 双引号 怎么用 zend studio 【小事情求助】 这个函数怎么写?? 两个域名之间COOKIE失效,有没有解决办法 php不能提取mysql中的内容?怎么回事? Flash 中如何用PHP 如何设置一个SESSION的有效时间(TIMEOUT)? (UP有分)RH8.0 Linux下php和mysql联接的最简单问题:mysql_connect()函数出错
实际上等同于提交一个URL:
http://www.yourdomain.com/yourpath/b.htm?textName=textValue
<script>
function tootherpage(url)
{
location.href=url+"?text="+document.form1.textfield1.value;
}
</script>
<a href="#" onclick="tootherpage("b.htm")">to page b</a>
<form name="form1" method="post" action="">
<input type="text" name="textfield1">
</form>b.htm中包含以下的内容:
<script>
url=String(window.document.location);
para=url.substring(url.indexOf("=")+1,url.length);
alert(para);
</script>
{
window.open("checkuser.php?text="+document.form1.text.value,"sd","left=100,top=200,width=200,height=100,resizable=0");}