Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2004, 09:07 PM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default a login procedure for a wap application

hi below is alist of code i bin staring at for 5 hours. anyone has any ideas as to why iot wont work. Im using VBscript to access database (ms access) for a wap applciation to verify student id and password. plzzzzzzzzzzzzzzzzz help(if ya can)

<% @LANGUAGE= "VBSCRIPT" %>
<% Option Explicit %>
<%Response.ContentType = "text/vnd.wap.wml"%>
<%Response.Buffer = True%>

<%
Response.Expires = 0

dim objrs, objconn, strQ, strConnection, StudentId

StudentId = Number(request("StudentId"))

strConnection = "DRIVER=Microsoft Access Driver(*.mdb);
                  DBQ="& Server.MapPath("mmu.mdb")

strConnection = Server.CreateObject("ADODB.Connection")

objconn.open strConnection

set objrs= Server.CreateObject("ADODB.Recordset")

set rs.ActiveConnection= objconn

strQ = "Select * from StudentId Where ID ="&StudentNumber&" ORDER BY ID and passCategory='99969820'"


objrs.Open strQ, objconn
%>

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>

<card>
<% if objrs.EOF then%>
<do type="Main Menu">
<go href="main.wml#main" />
</do>
<do type="prev" label="Back">
<prev/>
</do>
<p align="left">
<br/>Invalid Login!
<br/>Please try again.
</p>
<%Else%>
<%
'Session ("99969820") = rs("passCategory")
'Session ("StudentId") = rs("StudentNumber")
%>
<onevent type="ontimer">
<go href="main.wml"/>
</onevent>
<timer value="20"/>
<p>Password Accepted</p>

<%End If%>
</card>
</wml>
<%
objrs.Close
objconn.Close
set objrs = nothing
set objconn = nothing
%>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Application load Testing with JMeter SambaLH BOOK: Expert One-on-One J2EE Design and Development 1 April 16th, 2014 04:24 AM
Bugbase - Selected application on login nakori BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 June 23rd, 2008 12:56 PM
Application control is redirecting to the login pa anup_daware .NET Framework 2.0 1 May 13th, 2008 03:13 AM
Login Application Help Please Shalinar VB.NET 2002/2003 Basics 5 July 16th, 2007 01:01 PM
Login/Password Java application larry Apache Tomcat 2 December 20th, 2005 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.