我有點困惑的atm。我(必須......)與傳統的asp一起實施一個包含更大的網站。我對語言編碼沒有影響,所以請不要責怪爲languae或結構...經典ASP:在VBScript中返回的形式調用VBscript函數
所以這是我的函數:
function MaintMod2(modcmd)
if CheckUserRights2("M.Write") or CheckUserRights2("M.Read") then
response.write("<div class=""formContainer"">"&_
"<form action="">"&_
"<span> CI: <input type=""text"" name=""CI"" value=""byitm6""></span>"&_
"<span> Start: <input type=""text"" name=""Start"" value=""01.03.2013 - 07:30:17""></span>"&_
"<span> End: <input type=""text"" name=""End"" value=""15.04.2013 - 11:37:33""></span>"&_
"<span> Active: <input type=""checkbox"" name=""Active"" value=""Active""></span>"&_
"<input type=""submit"" class=""button"" id=""formSend"">"&_
"</form>"&_
"</div>")
end function
主要頁面(這不是我維護)調用MaintMod2函數來呈現新頁面。所以我使用「response.write」來生成我的HTML。
我的問題:我怎樣才能從表單動作調用?
<form action="myfunction()">
這是我的第一個想法,但它並沒有真正的工作:d
防止missunderdandings:'myfunction()'客戶端或服務器端函數。我問,因爲VBScript可以在客戶端和服務器端運行。 – reporter 2013-04-22 12:59:00
應該是服務器端。 Myfunction應該使用表單參數顯示數據。 – Leagis 2013-04-22 13:02:26