index.html文件:

<!DOCTYPE html>
<html>
<head>
	<title>优化后的页面</title>
</head>
<body>
	<h1>欢迎访问优化后的页面</h1>
	<?php
		$key = $_POST['key'];
		if($key == "123456"){
			echo "<p>卡密正确,继续运行后面的代码</p>";
			echo "<p>1111</p>";
		} else {
			echo "<script>alert('卡密已到期,请联系客服wyun122购买')</script>";
		}
	?>
</body>
</html>

check.php文件:

<?php
	$key = $_POST['key'];
	if($key == "123456"){
		header("Location: index.html");
	} else {
		echo "<script>alert('卡密已到期,请联系客服wyun122购买')</script>";
	}
?>

原文地址: http://www.cveoy.top/t/topic/LKc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录