how to save my data to table while i use login page?
843835Apr 22 2002 — edited Apr 22 2002I'm new in JSP. And i really need a help on this one
I have a login page like this
<html>
<head>
<title>Login Now To Play</title>
</head>
<body background="backdrop.gif">
<FORM action="simpleformhandler3.jsp" method="post">
<p align="center"><font face="BankGothic Md BT">LOGIN TO PLAY</font></p>
<p> NAME
<input type="text" name="username" size="20" maxlength="10">
<p>PASSWORD<input type="password" name="pass" size="20" maxlength="6"></p>
<p><input type="submit" value="Submit" >
<input type="reset" value="Reset" ></p>
</FORM>
and i handle the input with simpleformhandler3.jsp
my question is how to save my data to a table ( called gotable.mdb )?
my simple formhandler is like this
<html>
<body>
<%
//grab name and password from login
String username = request.getParameter("username");
String pass = request.getParameter("pass");
%>
<h1>Hello, <%=username%>
Thanks for joining our game</h1>
<INPUT type="hidden" name="username" value="<%=username%>">
<INPUT type="hidden" name="pass" value="<%=pass%>">
</body>
</html>
how can i made the username and password to be save in database?
i made the database in access.
the point of the login page is to made the user login before goes to the next page.
how can i made it to pass after the login is verified? and how to check that the username has a data in my table already so it can alow the user to access the next page?
what kind a code must i add?
what must i do?
please please ireally help on this one.
thanks