Home > Backend Development > PHP Tutorial > Parse PHP submission and jump_PHP tutorial

Parse PHP submission and jump_PHP tutorial

WBOY
Release: 2016-07-21 15:04:39
Original
887 people have browsed it

复制代码 代码如下:

//========================== 定义redirect() 开始 =========================//
/**
* Define the redirect() jump function, which is used to jump to the specified page according to the requirements after user operation.
*
* @param unknown_type $ms is used to adjust the jump required Seconds
* @param unknown_type $url is the address to specify the jump to
* @param unknown_type $text is the information when the jump is displayed
*/
function redirect($ms ='', $url='', $text=''){
echo <<



  

  

      
     
     
      
     
     
      
     
     
  
页面操作提示
$text

  

  

EOT;
}
//========================== 定义redirect() 结束 =========================//
?>

使用的时候是:
redirect('2','adduser.php','增加用户已经成功!稍后返回!');
其中 2 表示秒数,adduser.php 是所跳转的页面, "增加用户已经成功!稍后返回!" 是跳转等待的时候所显示的信息!

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/327753.htmlTechArticle复制代码 代码如下: ?php //========================== 定义redirect() 开始 =========================// /** * 定义redirect()跳转函数,是用来在用户操作后,页...
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