Hi:
I have a program that uses one page to login:
<html>
<head>
<title>Manual Offline Slot System</title>
</head>
<body>
<i>
</font>
<table WIDTH="600" ALIGN="center" BORDER="0" CELLSPACING="3" CELLPADDING="3">
<tr>
<td><form action="check.asp" METHOD="post">
<p> </p>
<p align="center"><font face="Arial Black" size="6">Manual Offline Slot
System</font></p>
<table BGCOLOR="green" BORDERCOLOR="maroon" ALIGN="center" BORDER="2" CELLSPACING="0"
CELLPADDING="4">
<tr>
<td ALIGN="center"><table align="center" bgColor="green" border="1" cellPadding="3"
cellSpacing="3">
<tr>
<td colspan="2" align="center" bgcolor="maroon"><font face="Arial" size="2"
color="white"><b>PLEASE ENTER NAME AND PASSWORD</b></font> </td>
</tr>
<tr>
<td align="right"><font color="white" face="Arial" size="2"><b>User Name:</b></font></td>
<td>
<input type="text" name="username" size="20" style="border-style: solid; border-width: 1px"></td>
</tr>
<tr>
<td align="right"><font color="white" face="Arial" size="2"><b>User Password:</b></font></td>
<td>
<input type="password" name="userpassword" size="10" maxlength="10" style="border-style: solid; border-width: 1px"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="login"> &n bsp; &nbs p;
&n bsp;
<input type="reset" value="CANCEL"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<BR>
<hr width="500">
</body>
</html>
Then it goes to check.asp, which validates the username and password and, if correct it then redirects to: http://pcrweb/jackpotfill/manual.asp
check.asp:
<%Dim MyLogin
Set MyLogin = Server.CreateObject("ADODB.Connection")
ConnStr = "DRIVER={Microsoft Access Driver (*.mdb)}; "
ConnStr = ConnStr & "DBQ=" & Server.MapPath("database\CustPassword.mdb")
MyLogin.Open(ConnStr)
SQLtemp = "SELECT * FROM CustRecords WHERE Cust_Name = '" & Request.Form("username") & "' "
Set rs = MyLogin.Execute(SQLtemp)
while not rs.eof
dim Your_Name
Your_Name = rs("Full_Name")
dim Date_In
Date_In = rs("Entry_Date")
response.cookies("remain") = Your_Name
response.cookies("still") = Date_In
If Request.Form("username") = rs("Cust_Name") AND Request.Form("userpassword") = rs("Cust_Password") Then
Response.redirect("http://pcrweb/jackpotfill/manual.asp")
Else
Response.redirect("Relogin.html")
End If
rs.MoveNext
Wend
OnError response.Redirect ("Relogin.html")
rs.Close
MyLogin.Close
set MyLogin = Nothing
%>
Now, How can I get the username and password to transfer over to :http://pcrweb/jackpotfill/manual.asp
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Jackpot Fill</title>
<SCRIPT type=text/javascript>
<!--
function isFilled(elm) {
if (elm.value == "" ||
elm.value == null)
return false;
else return true;
}
function isReady(form) {
if (isFilled(form.booth1) == false) {
alert("Please enter the booth.");
form.booth1.focus();
return false;
}
if (isFilled(form.type1) == false) {
alert("Please enter the type.");
form.type1.focus();
return false;
}
if (isFilled(form.amount1) == false) {
alert("Please enter the amount.");
form.amount1.focus();
return false;
}
if (isFilled(form.location1) == false) {
alert("Please enter the location.");
form.location1.focus();
return false;
}
if (isFilled(form.machine1) == false) {
alert("Please enter the machine.");
form.machine1.focus();
return false;
}
if (isFilled(form.alpha1) == false) {
alert("Please enter the alpha.");
form.alpha1.focus();
return false;
}
if (isFilled(form.denom1) == false) {
alert("Please enter the denomination.");
form.denom1.focus();
return false;
}
if (isFilled(form.symbol1) == false) {
alert("Please enter the symbol.");
form.symbol1.focus();
return false;
}
if (isFilled(form.coins1) == false) {
alert("Please enter the coins.");
form.coins1.focus();
return false;
}
if (isFilled(form.payment1) == false) {
alert("Please enter the payment.");
form.payment1.focus();
return false;
}
if (isFilled(form.patron1) == false) {
alert("Please enter the patron.");
form.patron1.focus();
return false;
}
if (isFilled(form.floorperson1) == false) {
alert("Please enter the floorperson.");
form.floorperson1.focus();
return false;
}
if (isFilled(form.no1) == false) {
alert("Please enter the number.");
form.no1.focus();
return false;
}
if (isFilled(form.slotfloor1) == false) {
alert("Please enter the slot floor manager.");
form.slotfloor1.focus();
return false;
}
if (isFilled(form.no2) == false) {
alert("Please enter the number.");
form.no2.focus();
return false;
}
if (isFilled(form.cashier1) == false) {
alert("Please enter the cashier.");
form.cashier1.focus();
return false;
}
if (isFilled(form.no3) == false) {
alert("Please enter the number.");
form.no3.focus();
return false;
}
if (isFilled(form.slottech1) == false) {
alert("Please enter the slot technician.");
form.slottech1.focus();
return false;
}
if (isFilled(form.no4) == false) {
alert("Please enter the number.");
form.no4.focus();
return false;
}
if (isFilled(form.witness1) == false) {
alert("Please enter the attendant.");
form.witness1.focus();
return false;
}
if (isFilled(form.no5) == false) {
alert("Please enter number.");
form.no5.focus();
return false;
}
if (isFilled(form.witness2) == false) {
alert("Please enter the witness.");
form.witness2.focus();
return false;
}
if (isFilled(form.no6) == false) {
alert("Please enter the number.");
form.no6.focus();
return false;
}
return true;
}
//-->
</SCRIPT>
<script type="text/javascript">
/***********************************************
* Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com)
* This notice must stay intact for use
* Visit
http://www.dynamicdrive.com/ for full source code
***********************************************/
function handleEnter (field, event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) {
var i;
for (i = 0; i < field.form.elements.length; i++)
if (field == field.form.elements[i])
break;
i = (i + 1) % field.form.elements.length;
field.form.elements[i].focus();
return false;
}
else
return true;
}
</script>
</head>
<body>
<p align="center"><font size="5" color="#0099CC" face="Georgia"><b>Jackpot Fill,
CCO Voucher</b></font></p>
<form method="POST" action="post.asp" onsubmit="return isReady(this)">
<input type=hidden name="voucherno">
<p align="left">
<img border="0" src="image001.png" width="245" height="137" style="position: absolute; left: 371; top: 46"></p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"><b><font face="Georgia">BOOTH:   ;
<input type="text" name="booth1" value= "" onpress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px"></font></b></p>
<p align="left"><b><font face="Georgia">TYPE: &n bsp;
<input type="text" name="type1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px">
AMOUNT:
<input type="text" name="amount1" onkeypress="return handleEnter(this, event)" size="21" style="border-style: solid; border-width: 1px"> &nb sp;   ; & nbsp; &nb sp;   ; </font></b>
<input type="submit" value="Submit" name="B1" style="border-style:solid; border-width:1px; color: #000000; font-weight: bold; background-color: #C0C0C0">
<input type="reset" value="Reset" name="B2" style="border-style:solid; border-width:1px; font-weight: bold; color: #000000; background-color: #C0C0C0"></p>
<p align="left"><b><font face="Georgia">LOCATION:
<input type="text" name="location1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px"> &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;
</font></b>
<p align="left"><b><font face="Georgia">MACHINE: &nb sp;<input type="text" name="machine1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px">
ALPHA:
<input type="text" name="alpha1" onkeypress="return handleEnter(this, event)" size="21" style="border-style: solid; border-width: 1px"> </font></b></p>
<p align="left"><b><font face="Georgia">DENOM:   ;
<input type="text" name="denom1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px">
</font></b></p>
<p align="left"><b><font face="Georgia">SYMBOL: &nbs p;
<input type="text" name="symbol1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px"> COINS PLAYED:
<input type="text" name="coins1" onkeypress="return handleEnter(this, event)" size="13" style="border-style: solid; border-width: 1px">
PAYMENT:
<input type="text" name="payment1" onkeypress="return handleEnter(this, event)" size="20" style="border-style: solid; border-width: 1px"></font></b></p>
<p align="left"><b><font face="Georgia">PATRON: &nbs p;
<input type="text" name="patron1" onkeypress="return handleEnter(this, event)" size="65" style="border-style: solid; border-width: 1px"></font></b></p>
</form>
<form action=http://pcrweb/jackpotfill> <p align="center">
<INPUT style="border-style:solid; border-width:1; WIDTH: 172; HEIGHT: 49" type=submit size=14 value="Logoff"></p>
</p></form>
</body>
</html>