超菜鸟关于PHP窗体间互传数据问题 两个框架分别调用不同的PHP。如第一框架是1.php,第二框加则是2.php 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 top.第2个框架的名字.window.loation.href=xxx.php?a=1&b=2; 1、服务器端:仅在php程序间传递可用session。不是适时的,要等到页面被访问。2、客户端:通过脚本传递 top.框架2.a = top.框架1.a 链接、表单都可以传参数的,redhat8.0上的PHP接收变量用$_GET['VAR'] $POST['VAR'] 实在想不通GOODNAME的思路:~(echo "<top.'2.php'.window.loation.href=1.php?a=1&b=2>hehe";用这样做一个超连接???a=1&b=2是为何解??我想将第一个框架中的a=50的变量送到第二个框架中。在第二个框架中echo ("$a")就能显示出这个变量的值。不解不解 我晕,我写的那个是用作javascript的句子你这么写。echo "<a href='2.php?a=50' target='这里是框架2的名字,不是函数名!!!'>link</a>";do u know? index.htm------------------------<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><frameset cols="255,*" frameborder="YES" border="1" framespacing="1" rows="*"> <frame name="leftFrame" src="1.php"> <frame name="mainFrame" src="2.php"></frameset><noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes></html>----------------------------------1.php<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><a href=2.php?a=50 target=mainFrame>link</a></body></html>---------------------------------------------------2.php<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000">a=<? echo $a; ?></body></html>-----------------------------------------------the end. sorry,我很少用qq了,基本上不聊了。 php服务端处理按钮点击的方法有没有 求解一条sql 请问怎么在验证后跳出一个提示DIV 基带信号为什么不适宜在信道中传输啊 php循环输出表格错位的问题 PHP数据库问题求指导~ 怎么学习PHP比较高效 离职了,下一步该怎么打算呢? zend是什么东西呀,干什么用的? php统计图片使用,反向链接等。 用php怎样接收网页错误类型号? 极度郁闷这么奇怪的问题!
top.第2个框架的名字.window.loation.href=xxx.php?a=1&b=2;
2、客户端:通过脚本传递
top.框架2.a = top.框架1.a
echo "<top.'2.php'.window.loation.href=1.php?a=1&b=2>hehe";
用这样做一个超连接???
a=1&b=2是为何解??我想将第一个框架中的a=50的变量送到第二个框架中。在第二个框架中
echo ("$a")就能显示出这个变量的值。
不解不解
你这么写。
echo "<a href='2.php?a=50' target='这里是框架2的名字,不是函数名!!!'>link</a>";do u know?
------------------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><frameset cols="255,*" frameborder="YES" border="1" framespacing="1" rows="*">
<frame name="leftFrame" src="1.php">
<frame name="mainFrame" src="2.php">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes>
</html>
----------------------------------
1.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href=2.php?a=50 target=mainFrame>link</a>
</body>
</html>
---------------------------------------------------
2.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
a=<? echo $a; ?>
</body>
</html>
-----------------------------------------------
the end.