复制代码 代码如下:
//========================== 定义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 <<
EOT;
}
//========================== 定义redirect() 结束 =========================//
?>
使用的时候是:
redirect('2','adduser.php','增加用户已经成功!稍后返回!');
其中 2 表示秒数,adduser.php 是所跳转的页面, "增加用户已经成功!稍后返回!" 是跳转等待的时候所显示的信息!
http://www.bkjia.com/PHPjc/327753.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327753.htmlTechArticle复制代码 代码如下: ?php //========================== 定义redirect() 开始 =========================// /** * 定义redirect()跳转函数,是用来在用户操作后,页...