Parse PHP and submit and jump. Copy the code as follows :? Php defines the redirect () start *** defines the redirect () jump function, which is used after the user operation, page
The code is as follows:
// ====================================== Define redirect () start = //
/**
* Defines the redirect () jump function, which is used to jump to the specified page as required after User Operations
*
* @ Param unknown_type $ ms is the number of seconds required for redirect.
* @ Param unknown_type $ url specifies the jump address
* @ Param unknown_type $ text: displays the jump information.
*/
Function redirect ($ ms = '', $ url ='', $ text = ''){
Echo <
|
Page Operation Prompt |
|
$ Text |
|
This page automatically jumps after $ ms seconds. if your browser does not jump, click this link to return.
|
|
EOT;
}
// ====================================== Define redirect () end ====================================== //
?>
When used:
Redirect ('2', 'adduser. php', 'added users successfully! Return later! ');
2 indicates the number of seconds. adduser. php indicates the page to jump to. "The user has been added successfully! Return later! "Is the information displayed during the jump wait!
The http://www.bkjia.com/PHPjc/327753.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327753.htmlTechArticle code is as follows :? Php // ================================== define redirect () start ======================================/// *** defines the redirect () jump function, is used after the user operation, page...