3', PHPWEB:'php.cn', settings:'settings', FullScreen:'Full Screen', Speed:'Speed', BrainwashingLoop:'Loop', speedNormal:'Normal', click_to_see:'Click to see full code for direct edit', nextSection:'Next Section', Cancel:'Cancel', Confirm:'Confirm', all_lang_string:'zh|en|zh-tw|ja|ko|ms|fr|de', Next:'Next', Previous:'Previous', };
Home > Backend Development > PHP Tutorial > PHP打开页面的有关问题

PHP打开页面的有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:12:38
Original
1022 people have browsed it

PHP打开页面的问题
echo '<script>window.open("outputcsv.php?number='.$maxnum.'");</script>'; 
echo '<script>window.open("label_outputcsv.php?number='.$maxnum.'");</script>'; 


这两个页面分别从数据库导出两个不同的excel表格,然后下载

单独调用一个,没问题,同时打开两个都没有

------解决方案--------------------
有可能是被浏览器block了么
------解决方案--------------------
代码是没有问题的你可以自己测试一下
echo '<script>window.open("http://www.sina.com");</script>';
echo '<script>window.open("http://www.sohu.com");</script>';

除非你里面的变量有问题,或者是浏览器拦截了你的弹出窗口,现在浏览器都具备这种基础功能,拦截弹出窗口。

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
Latest Issues
Ajax submit script submission error
From 1970-01-01 08:00:00
0
0
0
How to use the created hook in the setup script
From 1970-01-01 08:00:00
0
0
0
javascript - script tag async attribute
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template