我希望代码上的第 4 行转到页面 index.php ...正确的命令是什么???
if($count==1){
echo "Welcome...";
#LINE 4
}
else {
echo "Wrong Username or Password";
}
我希望代码上的第 4 行转到页面 index.php ...正确的命令是什么???
if($count==1){
echo "Welcome...";
#LINE 4
}
else {
echo "Wrong Username or Password";
}
我猜你想要这样的重定向:
<?php
if($count==1){
echo "Welcome...";
$golink = 'index.php';
?>
<html>
<head>
<title>A web page that points a browser to a different page after 2 seconds</title>
<meta http-equiv="refresh" content="2; URL=<?php echo $golink; ?>">
<meta name="keywords" content="automatic redirection">
</head>
<body>
If your browser doesn't automatically go there within a few seconds,
you may want to go to
<a href="<?php echo $golink ?>">the destination</a>
manually.
</body>
</html>
<?php
} else {
echo "Wrong Username or Password";
?>
希望这可以帮助 !