- 论坛徽章:
- 0
|
怎么修改这个代码,实现页面根据不同用户,跳转不同位置
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<meta http-equiv="Content-Language" content="ja">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>登録</title>
<script language=javascript>
/****************************************************************************
**
** Function: submit1_onclick()
** Input: none
** Output: none
**
** Description: This method checks to see if both text boxes, password and
** username have something populating them.
**
***************************************************************************/
function submit1_onclick()
{
var username = new String(loginform.Username.value);
var password = new String(loginform.Password.value);
if (username == "" || password == "")
{
alert("you must enter a username and a password");
return false;
}
if(username =="1"){
}
return true;
}
</script>
</head>
<body>
<hr>
<hr>
<form action="Admin/managemain.htm" target="_parent" method="POST" id="loginform" name="loginform" onSubmit="return submit1_onclick()">
<h2>登録</h2>
<p>ユーザー名の入力 :<br>
<input type="text" size="25" maxlength="256" name="Username"> --
大文字と小文字を混在させることができます<br>
パスワードの入力 :<br>
<input type="password" size="25" maxlength="256" name="Password"> --
メモして大事に保管しておいてください。<br>
</p>
<h2><input type="submit" value="登録" id="submit1" name="submit1"> <input type="reset" value="フォームのクリア"></h2>
</form>
<hr>
</body>
</html> |
|