webprgmquery 0 Newbie Poster

index.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<!DOCTYPE html PUBLIC "-//W5C//DTD XHTML 1.0 Transitional//EN" "http://www.w5.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w5.org/1999/xhtml">
<SCRIPT SRC="Z:\demographics\boxover.js"></SCRIPT>
<head>
<!--<META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://www.ualr.edu/human_relations/demographics/applicant-tracking-data.asp">-->

<title>Office of Human Relations - University of Arkansas at Little Rock</title>
<!--#include virtual="/human_relations/assets/includes/custom_head_onecolumn.inc" -->

<div id="contentcenteronecolumn">
<h3><p align="center">Online Recruitment Process</p></h3><br/><br/>
</head>
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"georgia";
mso-fareast-font-family:"Times New Roman";}
p
{font-size:10.0pt;
font-family:"georgia";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
tab-interval:.5in;
mso-paper-source:0;}

div.Section1
{pageection1;}
-->
.in {
font-size:10.0pt;
font-family:"georgia";
mso-fareast-font-family:"Times New Roman";
}
.error { color: red; }
</style>
<style type="text/css">
body {
georgia, Helvetica, sans-serif;
font-size: 12px;
}
</style>

<%
If session("LoggedIn") = "LoggedOut" Then
message = "You have successfully logged out"
ElseIf session("LoggedIn") = "NotNow" Then
message = "You must log in"
Else
message = ""
End If

session("LoggedIn") = "NOPE"
session("username") = ""


If Request.Form <> "" Then

bsuccess=True 
'if username is blank then set error flag
If Request.Form("username") = "" Then
bsuccess=False
End If
'if password is blank then set error flag
If Request.Form("password") = "" Then
bsuccess=False
End If

If bsuccess=False Then
'if any error in username & password then report it 
Response.write "Be sure the username and password details are complete." & " <A HREF=Javascript:history.go(-1)>Back</A>"
Else
'store username and password in session variable 
session("LoggedIn") = "YesWeHaveLoggedInGiveMeThePages"
session("username") = Request.Form("username")
session("password") = Request.Form("password")
'response.redirect("main.asp")
'verify user account
response.redirect("verify.asp")

End if
Else
%>


<p align="center"><span class="in">First time users must</span> <a href="/human_relations/phaseI/create.asp">Register</a>
</p></font>

<%

If Request.QueryString <>
webprgmquery 0 Newbie Poster

index.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<!DOCTYPE html PUBLIC "-//W5C//DTD XHTML 1.0 Transitional//EN" "http://www.w5.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w5.org/1999/xhtml">
<SCRIPT SRC="Z:\demographics\boxover.js"></SCRIPT>
<head>
<!--<META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://www.ualr.edu/human_relations/demographics/applicant-tracking-data.asp">-->

	<title>Office of Human Relations - University of Arkansas at Little Rock</title>
	<!--#include virtual="/human_relations/assets/includes/custom_head_onecolumn.inc" -->
 
		<div id="contentcenteronecolumn">
			<h3><p align="center">Online Recruitment Process</p></h3><br/><br/>
</head>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";}
p
	{font-size:10.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	tab-interval:.5in;
	mso-paper-source:0;}

div.Section1
	{page:Section1;}
-->
.in {
font-size:10.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";
    }
.error { color: red; }
</style>
<style type="text/css">
body {
georgia, Helvetica, sans-serif;
font-size: 12px;
}
</style>

<%
If session("LoggedIn") = "LoggedOut" Then
	message = "You have successfully logged out"
ElseIf session("LoggedIn") = "NotNow" Then
	message = "You must log in"
Else
	message = ""
End If

session("LoggedIn") = "NOPE"
session("username") = ""


If Request.Form <> "" Then

  bsuccess=True 
'if username is blank then set error flag
If Request.Form("username") = "" Then
bsuccess=False
End If
'if password is blank then set error flag
If Request.Form("password") = "" Then
bsuccess=False
End If
 
 If bsuccess=False Then
 'if any error in username & password then report it   
  Response.write "Be sure the username and password details are complete." & " <A HREF=Javascript:history.go(-1)>Back</A>"
Else
'store username and password in session variable 
	session("LoggedIn") = "YesWeHaveLoggedInGiveMeThePages"
	session("username") = Request.Form("username")
    session("password") = Request.Form("password")
	'response.redirect("main.asp")
    'verify user account
	response.redirect("verify.asp")
	
	End if
Else
%>


<p align="center"><span class="in">First time users must</span> <a href="/human_relations/phaseI/create.asp">Register</a>
</p></font>

<%

If Request.QueryString <>
webprgmquery 0 Newbie Poster

I am using User authentication system, which uses 2 pages index.asp where user logs in and then the username and password is sent to the validate.asp page where it is checked against database userlist.

if username and password are matched with username and password of database record then it should redirect to new page main.asp

but it is just throwing back to index.asp

index.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<!DOCTYPE html PUBLIC "-//W5C//DTD XHTML 1.0 Transitional//EN" "http://www.w5.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w5.org/1999/xhtml">
<SCRIPT SRC="Z:\demographics\boxover.js"></SCRIPT>
<head>
<!--<META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://www.ualr.edu/human_relations/demographics/applicant-tracking-data.asp">-->

	<title>Office of Human Relations - University of Arkansas at Little Rock</title>
	<!--#include virtual="/human_relations/assets/includes/custom_head_onecolumn.inc" -->
 
		<div id="contentcenteronecolumn">
			<h3><p align="center">Online Recruitment Process</p></h3><br/><br/>
</head>
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";}
p
	{font-size:10.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	tab-interval:.5in;
	mso-paper-source:0;}

div.Section1
	{page:Section1;}
-->
.in {
font-size:10.0pt;
	font-family:"georgia";
	mso-fareast-font-family:"Times New Roman";
    }
.error { color: red; }
</style>
<style type="text/css">
body {
georgia, Helvetica, sans-serif;
font-size: 12px;
}
</style>

<!--<p>
Please review the <a href="http://www.ualr.edu/human_relations/recruitment/optiona.asp">Recruitment Guidelines</a> prior to logging in.
</p>-->
<p align="center"><span class="in">First time users must</span> <a href="/human_relations/phaseI/create.asp">Register</a>
</p></font>

<!--<p><span class="teenI">Login using your FACSTAFF domain username & create unique password. 
</span></p>-->



<form action="validate.asp" method="POST" name="form1">


<table border=0 cellpadding=0 cellspacing=0 width=95%>
							<tr align="left">
							<td valign="top">
									<br>
									<div align="center">
									<span class="teenI"><a href=http://www.ualr.edu/human_relations/phaseI/update.asp>Change Password</a></span>
									</div>
									<br/>
								<td valign="top">
									<br>
									<div align="center">
									<span class="teenI">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/human_relations/">Human Relations</a></span>
									</div>

									
<!--<table border=0 style="margin-left: 50px;">-->
<table border=0