//步驟2.
//● request 放<form>外層,程式上方
//● 步驟1.按下submit後,才能request到
if request("save")<>"" then //按下儲存按鈕
sql = " UPDATE form_rbtr_tobeaway SET tobeaway_office = '" & split(request("orgid"),",")(0)
& "' WHERE tobeaway_no = '" & request("t_tobeaway_no") &"'"
ExecSql(sql)
%>
<SCRIPT LANGUAGE=JAVASCRIPT>
//window.opener.location.
opener.window.navigate("f002.
alert("單位設定完成");
window.close();
</SCRIPT>
<%
end if
//步驟1.按下submit鈕按(<input type="submit">)後(action="f001.
<form name="form" method="post" action="f001.asp">
<input class="submit" type="submit" name="Save" value="儲存" title="儲存" >
<input class="submit" type="submit" name="Exit" value="離開" title="離開" onclick="ExitWindow()" >
表單內容
</form>
|
完畢。
如果想做jsvascript使用者輸入防呆,參考這篇:javascript 基本認識 -使用者輸入防呆。
沒有留言:
張貼留言