以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 如何取得表单输入框的数值 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=105025) |
-- 作者:czy66ds -- 发布时间:2017/8/10 12:11:00 -- 如何取得表单输入框的数值 为了说明问题,举例说明 假如有如下代码:Dim fl As String = "d:\\web\\" & e.path If filesys.FileExists(fl) Dim idx As Integer = fl.LastIndexOf(".") Dim ext As String = fl.SubString(idx) Select Case ext Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar" e.WriteFile(fl) Return \'这里必须返回 End Select End If Select Case e.Path Case "test.htm" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddInputGroup("form1","ipg1","登录") .AddInput("xm","户名","text") .AddInput("pw","密码","password") End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With e.WriteString(wb.Build) \'生成网页 End Select 我的问题是如何取得输入框“户名”的数值?
|
-- 作者:有点甜 -- 发布时间:2017/8/10 12:23:00 -- 参考
http://www.foxtable.com/mobilehelp/scr/0104.htm
|