就用http://www.foxtable.com/mobilehelp/scr/0154.htm做列子吧登录页面的内部函数为"logon"
dim e as requesteventargs = args(0)
dim wb as new weui
wb.AddPageTitle("","pageheader","销售系统","由湛江辉迅基于Foxtable开发")
If e.PostValues.ContainsKey("username") AndAlso e.PostValues.ContainsKey("password") Then '判断是否是验证失败后的重新登录
wb.AddTopTips("","toptip1","用户名或密码错误!").msec = 2000 '如果用户通过登录按钮访问,则给用户一个2秒的提示.
End If
wb.AddForm("","form1","logon.htm")
With wb.AddInputGroup("form1","ipg1")
.AddInput("username","户名","text")
.AddInput("password","密码","password")
End With
With wb.AddButtonGroup("form1","btg1",True)
.Add("btn1", "登录", "submit")
End With
调用页面
dim wb as new weui
Select Case e.path
Case "logon.htm" '登录页面
functions.execute("logon",e)
End Select
通过这种方式,我想问一下,如何传递 用户名 密码 以及判断是否登录过呢