本文所介紹的應用程序是以ASP編程的初學者為讀者的。雖然這個例子非常簡單,但是它對于那些試圖在線對他們的雇員、學生或客戶進行考試的組織是非常有用的。
關于這個應用程序
我們的應用程序中的第一個界面包含在index.asp 中,由一個注冊頁組成,其中有兩個輸入域,一個是用戶名,另一個是口令。非會員要想參加考試的話必須要注冊。這一頁是初始屏幕,為用戶提供用戶名和口令的輸入框。
需要注意的是,這兩個將要批準的會員域應該有客戶機端的JavaScript 確認,以便不把它們作為空白域來傳遞。
if (theForm.username.value == "")
{
alert("Please enter the \"User Name\"");
theForm.username.focus();
return (false);
}
if (theForm.password.value == "")
{
alert("Please enter the \"Password\"");
theForm.password.focus();
return (false);
}
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/