PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。
PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。
是在这里面,加代码吧。
<!-- 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()"/>
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><?php
require("py.php");
$C=$_GET["C"];
$url=$_NameMark[$C]."/";
Header("Location: $url");
?>
<input type="button" title="click me" onclick="parent.location='http://www.baidu.com/'"><br><font color="#e78608">------解决方案--------------------</font><br>这是js的讨论范围,与<a style="color:#f60; text-decoration:underline;" title="php" href="https://www.php.cn/zt/15714.html" target="_blank">php</a>无关 <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>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号