请问:下面代码运行为何运行出现错误。信息:error loading page

花果山人66 花果山人66 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
代码1:index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<style>img{max-width:100%;}</style>
<title>My first</title>
</head>
<body>
<div data-role="page">
<div data-role="header"><h1>My First Mobile Site</h1></div>
<div data-role="content">
<form id="login" name="login" action="login.php" method="POST">
<div data-role="fieldcontain">
<label for="username">Username:</label>
<input type="text" name="username" id="username" value=""/><br/>
</div>
<div data-role="fieldcontain">
<label for="password">Password:</label>
<input type="password" name="password" id="password" value=""/><br/>
</div>
<input type="hidden" name="hiddenInput" id="hiddenInput" value="secret message"/>
<input type="submit" name="loginSubmit" id="loginSubmit" value="Login"/>
</form>
</div>
</div>
</body>
</html>


代码二:login.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<title>My first 2</title>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>My First Mobile Site 2</h1>
</div>
<div data-role="content">
<p>Usernamr:"<strong><?php echo $_POST['username'];?></strong>"</p>
<a href="index.html" data-rel="back" data-role="button">Go Back</a>
</div>
</div>
</body>
</html>
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
花果山人66
JavaScript 87,984 成员 224,680 内容