Home > Backend Development > PHP Tutorial > A small function that prompts specified messages through JS on the page

A small function that prompts specified messages through JS on the page

WBOY
Release: 2016-07-25 09:07:13
Original
904 people have browsed it
  1. /*

  2. * Function: Specify the message through JS prompt on the page, and end the page execution
  3. * Parameter:
  4. * Msg: The message to be displayed
  5. * URL: The page to be returned needs to be specified , return to the previous page if not specified
  6. */

  7. function ShowMsg($Msg, $URL = "")

  8. {
  9. //header('Content-Type: text/html; charset =utf-8');
  10. //echo '';
  11. echo "";

  12. exit();

  13. }
Copy code


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