Many programmers use
1. PHP pop-up dialog box
- <? PHP
- Echo"<ScriptLanguage =
"JavaScript">Alert
("Hello ");</Script>";
- ?>
Or
- <? PHP
- Print"<ScriptLanguage =
"JavaScript">Alert
("Hello ");</Script>";
- ?>
2. If you need a PHP pop-up dialog box and then return to the original page, you can write it like this.
- <? PHP
- Echo "<script language =
"JavaScript"> rn ";
- Echo "alert (" hello "); rn ";
- Echo "history. back (); rn ";
- Echo "</script> ";
- Exit;
- ?>
Or
- <? PHP
- Print "<script language =
"JavaScript"> rn ";
- Print "alert (" hello "); rn ";
- Print "history. back (); rn ";
- Print "</script> ";
- Exit;
- ?>
3. If the PHP pop-up dialog box is required, replace the original page with a new page (Replace the current history). The original page can be written in this way.
- <? PHP
- Echo "<script language =
"JavaScript"> rn ";
- Echo "alert (" hello "); rn ";
- Echo "location. replace
("Http://www.asm32.net /");
Rn "; // modify the website by yourself
- Echo "</script> ";
- Exit;
- ?>
Or
- <? PHP
- Print "<script language =
"JavaScript"> rn ";
- Print "alert (" hello "); rn ";
- Print "location. replace
("Http://www.asm32.net /");
Rn "; // modify the website by yourself
- Print "</script> ";
- Exit;
- ?>