跳转页面
<?php
$pass='123456';
$name='admin';
?>
页面
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>测试跳转</title>
</head>
<body>
<form id="" action="http://192.168.2.166/e/admin/index.php" method="post" accept-charset="utf-8">
<input type="text" name="username" id="username" value="<?=$name?>" />
<input type="text" name="password" id="password" value="<?=$pass?>" />
<input name="imageField" id="imageField" type="image" width="69" height="21" border="0">
</form>
</body>
</html>
跳转后的页面(帝国cms)
<script>
function load(){
document.getElementById("imageField").click();
}
</script>
<?php
$a = $_POST['username'];
$b = $_POST['password'];
?>
<input name="username" type="text" class="b-form2" size="22" value="<?=$a?>">
<input name="password" type="password" class="b-form2" value="<?=$b?>" size="22">
<input name="imageField" id="imageField" onload="load()" type="image" src="loginimg/login2.gif" width="69" height="21" border="0">