The script below works in allowing a user access to the WAP page following a user entering their username and password. The list of users is stored in a database. Once the user is granted access, a welcome message appears, welcoming the user.
My question is however, at which point in the script below would i add another card which took the user pass the welcome screen following user acceptance? Please post an example if possible.
<%Response.ContentType = "text/vnd.wap.wml" %><?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
<card id="menu" title="Menu">
dim dbConn, sql, empl
set dbConn = Server.CreateObject("ADODB.Connection"
sql = "SELECT * FROM tblEmpl WHERE username='"&Request.Form("username"&"' AND password='"&Request.Form("password"&"'"
set empl = dbConn.Execute(sql)
if empl.EOF then
Response.Write "You have entered an invalid login."
Response.Write "Welcome, " & empl("fname"
set empl = Nothing
set dbConn = Nothing