Home > Backend Development > PHP Tutorial > PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。解决方案

PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。解决方案

WBOY
Release: 2016-06-13 10:16:21
Original
866 people have browsed it

PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。
PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。

是在这里面,加代码吧。

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><input name="C" type="text" id="C" style="width: 380px;" onkeyup="jsAutoInstance.handleEvent(this.value,'C',event);"><input name="huan" type="button" id="huan" value="搜索" onclick="so3()">
Copy after login






PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phprequire ("py.php");$C=$_GET["C"];$url=$_NameMark[$C]."/";Header("Location: $url");?>
Copy after login


------解决方案--------------------
这个用js window。open
------解决方案--------------------
HTML code
<input type="button" title="click me" onclick="parent.location='http://www.baidu.com/'"><br><font color="#e78608">------解决方案--------------------</font><br>这是js的讨论范围,与php无关<br><font color="#e78608">------解决方案--------------------</font><br>将你的$url 传递给js 来open.<br><font color="#e78608">------解决方案--------------------</font><br>你不是想弹窗吗? 怎么会涉及到php代码? 请描述点吧!<br><font color="#e78608">------解决方案--------------------</font><br>onclick="window.open(.......);"  //去看看手册中关于open里面的参数。<br><font color="#e78608">------解决方案--------------------</font><br>哎!甚至不必用到JS<br>你的表单这么写就OK了<br>
Copy after login

……

------解决方案--------------------
百度 js弹出新窗口
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template