[AccessD] OT - ASP & HTML Logon

Ralf Lister lister at actuarial-files.com
Tue Apr 27 11:21:59 CDT 2004


Dear Paul,

sorry I'm a little bit late (as always).

All seems that the code you have given, you saved as ASP-Page. Save it as
HTML-Page. Then it'll work (I tried it on my PWS).

However, it'll not redirect to any other page, it just takes the Username
and Password.

For going to another page after the login (to test if you are authorized),
you have to add:

<%
response.redirect "The_next_page.asp"
%>

BTW, ASP-Pages don't run without server!

HTH
Ralf
Saludos de un Bolivia en peligro
----- Original Message -----
From: <paul.hartland at fsmail.net>
To: "accessd" <accessd at databaseadvisors.com>
Sent: Tuesday, April 27, 2004 4:28 AM
Subject: [AccessD] OT - ASP & HTML Logon


To all,

Really sorry for the OT but don't know any good ASP/HTML lists.

I am starting to get into writing HTML & ASP (gulp), I have created a HTML
logon page (very very very basic) which when you click the Submit button
calls an ASP page called CheckLogin.asp (see HTML code below):

<HTML>
<HEAD>
<title>Orridge Reporting Logon</title>
</HEAD>
<BODY>
      <FORM METHOD=Post ACTION="CheckLogin.asp">
      Username: <INPUT TYPE=Text NAME="Username">
      <P>
      Password: <INPUT TYPE=Password NAME="Password">
      <P>
      <INPUT TYPE=Reset> <INPUT TYPE=Submit>
      </FORM>
</BODY>
</HTML>

The problem being that when the submit button is pressed it tries to
download the page instead of checking the username against my database.
Does anyone know what the problem could be ?

Thanks in advance for any help on this.

Paul Hartland
Database Designer/Developer (and a total novice in WEB development).
Join the UK's number one for the internet
www.freeserve.com/time
--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com






More information about the AccessD mailing list