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
WBOYOriginal
2016-07-15 13:35:06911browse

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>

<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>

<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>
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>

true


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

TechArticle

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