PHP redirect and page quick turn

Source: Internet
Author: User
Keywords Network programming PHP tutorial
Tags function html index index.php info network network programming open source

php tutorials redirects and page quick turnaround
<?
function turntopage ($ url = "index.php", $ info = "page turn in ...", $ second = 2) {
print "<html> n <head> n <title> page to go .... </ title> n";
print "<meta http-equiv =" refresh "content =" $ second; url = $ url "> n"; // open source jzread.com
print "<style type =" text / css tutorial "> n <! - n";
print "td {font-family:" verdana "," arial "; font-size: 12px} n";
print "a {color: # 000000; text-decoration: none} n";
print "-> n </ style> n";
print "</ head> n <body> n";
print "<table width =" 100% "border =" 0 "align =" center "> n";

//jzread.com

print "<tr> n";
print "<td height =" 200 "> </ td> n";
print "</ tr> n";
print "<tr> n";
print "<td align =" center "> n";
print "<table width =" 60% "border =" 0 "cellpadding =" 8 "bgcolor =" # aa9fff "> n";

// Open source jzread.com

print "<tr> n";
print "<td height =" 30 "align =" center "> page turn information </ td> n";
print "</ tr> n";
print "<tr> n";
print "<td align =" center "> $ info </ td> n";
print "</ tr> n";
print "<tr> n";

//jzread.com

print "<td align =" center "> n";
print "<a href="$url"> If your browser does not support automatic jumps, click here </a> </ td> n";
print "</ tr> n";
print "</ tr> n";
print "</ table> </ td> n";
print "</ tr> n";
print "<tr> n"; // open source jzread.com
print "<td height =" 200 "> </ td> n";
print "</ tr> n";
print "</ table> n";
print "</ body> n </ html>";
exit
?>

php redirect
<?
Method one: header ("location: index.php");
Method two: echo "<scrīpt> window.location =" $ php_self "; </ scrīpt>";

// Open source jzread.com

Method three: echo "<meta http-equiv =" refresh "content =" 0; url = index.php ">";
?>

Related Article

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.