Home > Backend Development > PHP Tutorial > Detailed interpretation of PHP pop-up dialog box techniques_PHP tutorial

Detailed interpretation of PHP pop-up dialog box techniques_PHP tutorial

WBOY
Release: 2016-07-15 13:35:06
Original
908 people have browsed it

Many programmers use

1. PHP pop-up dialog box

  1. < ?PHP
  2. echo "< script language=
    "JavaScript"
    > alert
    ("Hello");
    < /script>";
  3. or <
?PHP

    print "
  1. < script
  2. language= "JavaScript">alert ("Hello") ;
    < /script>
    "; ?>
  3. 2. If you need PHP pop-up dialog After the box returns to the original page, you can write or
3. If you need to replace the original page with the new page after PHP pops up the dialog box (Replace the current history record), the original page can be written like this:

or
<ol class="dp-xml">
<li class="alt">
<span class="tag"><</span> ?PHP   </li><li><span>echo "</span><span class="tag">< </span><span class="tag-name">script</span><span> </span><span class="attribute">language</span><span>=<br />"JavaScript"</span><span class="tag">></span><span>rn";   </span>
</li>
<li class="alt"><span>echo " alert("你好");rn";   </span></li>
<li><span>echo " history.back();rn";   </span></li>
<li class="alt">
<span>echo "</span><span class="tag">< /</span><span class="tag-name">script</span><span class="tag">></span><span>";   </span>
</li>
<li><span>exit;   </span></li>
<li class="alt">
<span class="tag">?></span><span>   </span>
</li>
</ol>
Copy after login

<ol class="dp-xml">
<li class="alt">
<span class="tag"><</span> ?PHP   </li><li><span>print "</span><span class="tag">< </span><span class="tag-name">script</span><span> </span><span class="attribute">language</span><span>=<br />"JavaScript"</span><span class="tag">></span><span>rn";   </span>
</li>
<li class="alt"><span>print " alert("你好");rn";   </span></li>
<li><span>print " history.back();rn";   </span></li>
<li class="alt">
<span>print "</span><span class="tag">< /</span><span class="tag-name">script</span><span class="tag">></span><span>";   </span>
</li>
<li><span>exit;   </span></li>
<li class="alt">
<span class="tag">?></span><span>   </span>
</li>
</ol>
Copy after login

<ol class="dp-xml">
<li class="alt">
<span class="tag"><</span> ?PHP   </li><li><span>echo "</span><span class="tag">< </span><span class="tag-name">script</span><span> </span><span class="attribute">language</span><span>=<br />"JavaScript"</span><span class="tag">></span><span>rn";   </span>
</li>
<li class="alt"><span>echo " alert("你好");rn";   </span></li>
<li><span>echo " location.replace<br>("http://www.asm32.net/");<br>rn"; // 自己修改网址   </span></li>
<li class="alt">
<span>echo "</span><span class="tag">< /</span><span class="tag-name">script</span><span class="tag">></span><span>";   </span>
</li>
<li><span>exit;   </span></li>
<li class="alt">
<span class="tag">?></span><span>   </span>
</li>
</ol>
Copy after login
http://www.bkjia.com/PHPjc/445923.html

www.bkjia.com
<ol class="dp-xml">
<li class="alt">
<span class="tag"><</span> ?PHP   </li><li><span>print "</span><span class="tag">< </span><span class="tag-name">script</span><span> </span><span class="attribute">language</span><span>=<br />"JavaScript"</span><span class="tag">></span><span>rn";   </span>
</li>
<li class="alt"><span>print " alert("你好");rn";   </span></li>
<li><span>print " location.replace<br>("http://www.asm32.net/");<br>rn"; // 自己修改网址   </span></li>
<li class="alt">
<span>print "</span><span class="tag">< /</span><span class="tag-name">script</span><span class="tag">></span><span>";   </span>
</li>
<li><span>exit;   </span></li>
<li class="alt">
<span class="tag">?></span><span> </span>
</li>
</ol>
Copy after login

true


http: //www.bkjia.com/PHPjc/445923.html

TechArticle

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