【发布时间】:2013-12-19 10:24:06
【问题描述】:
我有这个页面,它有一个重定向到另一个网站的 php。但是这也有一个 html,它将在重定向之前显示。可以在这里完成吗?我想延迟几个重定向seconds 表明 html 内容在页面被重定向之前显示了一段时间。
<?php
if($app_used=='Cnojhjkct')
{
$redirectTo=$respL."?status=".$status."&orderID=".$orderID."&transaefNo=".$cusf_no."&payMode=".$tranype."&cardider=".$cardPrider;
header("Location: $redirectTo");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A layout example with a side menu that hides on mobile, just like the Pure website.">
<title>Transaction Response</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<div id="layout">
<div id="main">
<div class="header">
<div class="pure-g-r">
<div class="pure-u-1-4">
<img src="./gsggd.png" alt="Peyto Lake">
</div></div>
<h1>Transaction Response</h1>
</div>
<div class="content">
</div>
<div style="width:100%">
<div style="margin-left:5%;width:5%;float:left;margin-right:20%;"><img src="<?php
if($message == 'successfull')
{
echo './success.png';
}
else
{
echo './failed.png';
}
?>"/></div>
<div style="width:70%;float:left;"><h3>Your transaction was <?php echo $message; ?> ! Your transaction reference number for any further communication is <?php echo $cust_ref_no; ?> .</h3></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
【问题讨论】:
标签: php html redirect url-redirection