如何获取他的值

xiongbing529 2006-08-04 06:39:10




a.php




<form name=infoForm action="c.php" method="POST" >

Prefer Login Name :
</td>
<td height=26><input type=text name=MemberCode

style="width:220px; " value='' /><input type="button"

name="CheckCode" onclick="javascript:checkCode

(document.infoForm.MemberCode);" value="Check">3-20 bit Member

Code

<input type="submit" value="OK">

<script language="javascript">
function checkCode(code)
{
if(code.value == '')
{
alert("Member Code is error");
code.focus();
return;
}
var php="c.php";
window.open(php,"Check","width=200,height=150,top=200,

left=200,toolbar=no,status=no,menubar=no,location=no,directorie

s=no,resizable=yes,scrollbars=yes,onselectstart='return

false',ondragstart='return false',ncontextmenu='return

false'");
}

</script>



c.php




<script language="javascript">
function f()
{
setTimeout("self.close()",10000);
}
</script>
<body onload="f()">

<?

$value=$_POST['MemberCode'];
echo $value;
?>
</body>





...............怎么我就是的不到MemberCode的值。怎么才可以获取MemberCode的值在c.php显示
...全文
108 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiongbing529 2006-08-05
  • 打赏
  • 举报
回复
你告诉我怎么搞定就可以了。我的代码全在这里。。如何调整
zeroleonhart 2006-08-05
  • 打赏
  • 举报
回复
If you use window.open, how can you post the data to the page ???
Maybe you can use GET or use js on c.php to control the page.
xiongbing529 2006-08-04
  • 打赏
  • 举报
回复
不是把。高手同志。那你这样就没意思了。改变了我的想法啊。。我是想在window.open的页面获取MemberCode的值。不是简单的$_POST[]获取值得。

zeroleonhart 2006-08-04
  • 打赏
  • 举报
回复
form name=infoForm action="c.php" method="POST" >

Prefer Login Name :
</td>
<td height=26><input type=text name=MemberCode

style="width:220px; " /><input type="button"

name="CheckCode" onclick="checkCode

(document.infoForm.MemberCode.value);" value="Check">3-20 bit Member

Code

<input type="submit" value="OK">

<script language="javascript">
function checkCode(code)
{
if(code.value == '')
{
alert("Member Code is error");
code.focus();
}
}

</script>

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧