child.php中的from提交数据时
farther.php中的php代码要获取child.php中的值,改怎么做到,高手帮忙 farther.php <SCRIPT>
function opslogin(str1,str2,str3)
{
window.showModelessDialog(str1,window,'dialogHeight:'+str2+'px;dialogWidth:'+str3+'px;scroll:no;resizable:no;status:no;help:no');
}
</SCRIPT> <input type="submit" name="Submit" value="cd1" onclick="opslogin('child.php','200','300');"/>
<?php
print_r($_POST);
?> child.php <base target="_self">
<form action="farther.php" method="post">
<input name="" type="text"> <input name="提交" type="submit" value="提交">
</form>
farther.php中的php代码要获取child.php中的值,改怎么做到,高手帮忙 farther.php <SCRIPT>
function opslogin(str1,str2,str3)
{
window.showModelessDialog(str1,window,'dialogHeight:'+str2+'px;dialogWidth:'+str3+'px;scroll:no;resizable:no;status:no;help:no');
}
</SCRIPT> <input type="submit" name="Submit" value="cd1" onclick="opslogin('child.php','200','300');"/>
<?php
print_r($_POST);
?> child.php <base target="_self">
<form action="farther.php" method="post">
<input name="" type="text"> <input name="提交" type="submit" value="提交">
</form>
解决方案 »
- 表单提交成功了 但Ext总是调用 failure
- 关于JS对INPUT的内容判断求助
- input无法获得焦点
- 请问如何将一个aspx页面嵌入另一个aspx页面?
- 每个人都值得探讨和深思的问题。
- 请问文件上传域,右边的浏览按钮如何做成图片按钮呀
- 哪位JS大侠给一段文本框中只能输入货币的验证函数(即只能输入数字和小数点)!在线等待,马上给分,先发先得!
- jquery的treetable,如何使用json动态生成
- 这样的js如何访问到值
- 关于JS的作用域,值传递的问题
- javascript实现MessageBox,怎么实现程序流程的临时挂起
- 我使用的这段javascript代码在IE中正常显示,在FF中不能正常显示 希望高手帮帮忙呀!!!
当然是POST获取值了
print_r($_POST["你的表单名"]);
?>
farther.php <SCRIPT>
function opslogin(str1,str2,str3)
{
showModelessDialog(str1,window,'dialogHeight:'+str2+'px;dialogWidth:'+str3+'px;scroll:no;resizable:no;status:no;help:no');
} function fnUpdate(s)
{
document.getElementById("myname").value = s;
}
</SCRIPT>
<input id="myname">
<input type="submit" name="Submit" value="cd1" onclick="opslogin('js.html','200','300');"/>
<?php
print_r($_POST);
?>
child.php
--------------------
<script>
function fchange()
{
var sData = dialogArguments;
sData.fnUpdate(document.getElementById("mytest").value);
}
</script>
<base target="_self">
<form action="farther.php" method="post">
<input name="mytest" id="mytest" type="text" onchange="fchange()"> <input name="提交" type="submit" value="提交">
</form>