急,会frame传递的请帮忙看看!
时间:2003-07-05
来源:互联网
leftframe中的导航条:
我传参数要到mainframe中怎么传啊?
在leftframe中$i 和$ j是要传递的参数,row["item"] 是链接
printf("<a href=\"%s?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$PATH_INFO,$id,$parent_id,$row["item"]);
我的mainframe中有判断条件
(判断i 的值没有)
作者: captain 发布时间: 2003-07-05
作者: sky_travel 发布时间: 2003-07-05
我UP,UP!
作者: captain 发布时间: 2003-07-05
我点了链接后弹出一个新页面只有一帧是mainframe的,但是还包括了leftframe
新页面的地址栏中:zhuyemian/left.php?i=8&j=1
可是我想在当前页面zhuyemian/all.php中只是mainframe中的页面变化(如果$i 的值不同的话)
作者: captain 发布时间: 2003-07-05
作者: captain 发布时间: 2003-07-05
作者: shelly0577 发布时间: 2003-07-05
<a href=javascript:void(0) onclick="触发js">link</a>
js: mainframe.location.href='action.php?i=xxx&j=xxx';
作者: 巴豆 发布时间: 2003-07-05
<?php
$prof_sql="select * from item where indicator='1'and item_grade='1'";
$prof_result=mysql_query($prof_sql,$linkid);
$m=mysql_num_rows($prof_result);
while($myrow=mysql_fetch_array($prof_result))
{
$parent_id=$myrow["item_id"];
echo $parent_id;
echo $myrow["item"]."<><br>";
$course_result=mysql_query("select item_id,item from item where item_superior='$parent_id'",$linkid);
$course_num=mysql_num_rows($course_result);
while($row=mysql_fetch_array($course_result))
{
$id=$row["item_id"];
echo $id;
printf("<a href=\"%s?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$PATH_INFO,$id,$parent_id,$row["item"]);
}
}
?>
在mainframe中:
<?php
if($i)
{a1.php;
}
else
{b1.php}
?>
巴豆大哥,我的这段应该怎么改,谢谢!
作者: captain 发布时间: 2003-07-05
然后在要用这个值的页面echo $_GET[ine];
看看行不行!!我试过是可以的!!
作者: askswin 发布时间: 2003-07-05
你试试吧,我这儿没环境
echi $id;
$action = $_SERVER[PHP_SELF].'?i='.$id.'&&j='.$parent_id;
print "<a href='javascript:void(0)' onclick='mainframe.location.href=\"$action\"'>$row[item]</a>";
作者: 巴豆 发布时间: 2003-07-05
作者: captain 发布时间: 2003-07-05
作者: captain 发布时间: 2003-07-05
main_url.php?i=xxx&&j=xxx
作者: 巴豆 发布时间: 2003-07-05
target="框架名称"
变量直接在地址传递
或者用表单提交到相应的框架呀
作者: deepseath 发布时间: 2003-07-05
作者: captain 发布时间: 2003-07-05
作者: 巴豆 发布时间: 2003-07-05
作者: 巴豆 发布时间: 2003-07-05
我的页面的框架集all.php(top.php,left.php,main.php)
可是改过后,我写在左边的:
printf("<a href=\"main.php?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$id,$parent_id,$row["item"]);
我点了链接后,参数也传过了,但是
它为什么不在右边的框架中显示,而是有弹出个页面呢?
还没吃饭呢,一会再来看,郁闷呀!
作者: captain 发布时间: 2003-07-05
$str = printf("<a href=\"main.php?i=%s&j=%s\" target='mainframe'>%s</a><br>\n",
$id,$parent_id,$row["item"]);
$str= addslashes($str);
eval ("\$str = \"$str\";");
我不清楚你有没有穿过值去
你试一下!
作者: yhlong 发布时间: 2003-07-05
作者: captain 发布时间: 2003-07-05
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28