Home >Backend Development >PHP Tutorial > 小弟我有一个简单的查询,想在点击查询后,跳出一个窗口,在窗口中显示查询结果

小弟我有一个简单的查询,想在点击查询后,跳出一个窗口,在窗口中显示查询结果

WBOY
WBOYOriginal
2016-06-13 13:10:31947browse

我有一个简单的查询,想在点击查询后,跳出一个窗口,在窗口中显示查询结果
问题如标题,不知道怎么显示?这个用的是js,请问有人指点下吗








请输入编号




------解决方案--------------------
<script><br />function openWin(){<br /> var v=document.getElementsByName('bianhao')[0].value;<br /> window.open('d.php?id='+v,'newwindow', 'height=100, width=400'); //假设新窗口为d.php<br /> return false;<br />}<br /></script>
..................


接下来 $_GET['id'] 得到id 查询就简单了吧。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn