This is probably straight forward but I am a novice programmer and need help.
I am trying to develop a login for a web application, now I have attached my code used so far, essentially i connect to a oracle database with a table with my valid user names and passwords.
I also have a html form which POST's the username and password to the servlet.
How can I get my servlet to do a check to see and compare the data entered into the html form versus the data from the table (authorised username & passwords) and if they do it will lead onto the next html and if not it will go to a different page (error page).
I have posted the html page i using for login also, in case anyone wants to try it.
<BR>Username: <INPUT NAME="myusername">
<BR>Surname: <INPUT NAME="mypassword">
<BR><INPUT TYPE="submit" value="Submit Form">