Jump after parsing PHP submission

Source: Internet
Author: User

Copy codeThe Code is as follows: <? Php
// ====================================== 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 <EOT
<Meta http-equiv = "refresh" content = $ ms; URL = $ url>
<Div align = "center">
<Table width = "600" border = "0" cellpadding = "1" cellspacing = "1" class = "tableoutline">
<Tr>
<Td colspan = "3"> <table width = "100%" border = "0" cellpadding = "5" cellspacing = "1">
<Tr>
<Td valign = "bottom"> <div align = "center"> webpage operation prompt </div> </td>
</Tr>
<Tr>
<Td> <div align = "center"> $ text </div> </td>
</Tr>
<Tr>
<Td> <div align = "center"> <a href = "$ url" mce_href = "$ url"> This page automatically jumps after $ ms seconds, if your browser does not jump, click this link to return. </A> </div>
</Td>
</Tr>
</Table> </td>
</Tr>
</Table>
</Div>
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.