Does anyone have the source code for doing a login page?

I need to do a login page with capture the input from the username and password's textbox on webpage then validate the username and password in the database. If correct then direct the user to the main page, if not, will display a error page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ccff99">
<form name="form1" method="post" action="customercheck.jsp" target="_self">
<p align="center"><strong><font size="5"><U>Customer Login</U></font></strong></p>
<table width="75%" align="center" cellpadding="0" cellspacing="0">
<tr >
<td width="38%" rowspan="2" border="2" bordercolor="#000000" ><div align="center"><strong>New
User? Click here.</strong></div></td>
<td width="21%"><strong>User Name : </strong></td>
<td width="41%"><input type="text" name="username"></td>
</tr>
<tr>
<td><strong>Password :</strong> </td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td width="38%" bordercolor="#000000"> </td>
<td colspan="2"><div align="center">
<p> </p>
<p>
<input type="submit" name="Submit2" value="Login">
</p>
</div></td>
</tr>
</table>
</form>
</body>
</html>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="Connections/conn1.jsp" %>
<%
String Recordset1__username = "%";
if (request.getParameter("username") !=null) {Recordset1__username = (String)request.getParameter("username");}
%>
<%
String Recordset1__password = "%";
if (request.getParameter("password") !=null) {Recordset1__password = (String)request.getParameter("password");}
%>
<%
Driver DriverRecordset1 = (Driver)Class.forName(MM_conn1_DRIVER).newInstance();
Connection ConnRecordset1 = DriverManager.getConnection(MM_conn1_STRING,MM_conn1_USERNAME,MM_conn1_PASSWORD);
PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT cust_id,username, password FROM customer WHERE username='" + Recordset1__username + "' AND password='" + Recordset1__password + "'");
ResultSet Recordset1 = StatementRecordset1.executeQuery();
boolean Recordset1_isEmpty = !Recordset1.next();
boolean Recordset1_hasData = !Recordset1_isEmpty;
Object Recordset1_data;
int Recordset1_numRows = 0;
if(Recordset1_isEmpty) response.sendRedirect("loginagain.html");
String hi = Recordset1.getString(1);
session.setAttribute("id",hi);
session.setAttribute("right","hello");
session.setAttribute("emp_right","tt");
response.sendRedirect("availability.jsp");
//response.sendRedirect("vacancytemp.jsp");
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>
<%
Recordset1.close();
StatementRecordset1.close();
ConnRecordset1.close();
%>

Similar Messages

  • Does anyone have the HTML code for the Buffy Font

    Does anyone have the HTML code for the Buffy Font?

    1) download one of the Buffy fonts @ font space, just as Hans-Günter wrote.
    2) go to FontSquirrel, and use the web font generator: http://www.fontsquirrel.com/tools/webfont-generator
    3) load up your buffy font, and generate the web font.
    4) download the zip package, and check out the included demo file
    Copy all the font files (all four of them) to your web folder. Then copy the code that looks like this to the top of your css:
    @font-face { font-family: 'FontName'; src: url('FileName.eot'); src: url('FileName.eot?#iefix') format('embedded-opentype'), url('FileName.woff') format('woff'), url('FileName.ttf') format('truetype'), url('FileName.svg#FontName') format('svg'); font-style: normal; font-weight: normal; }
    Check that all file references are set up correct, and use the font name  in your css rules.
    h1 {
    font-family: 'FontName';
    Done!

  • Does anybody have the source code for playing video..?

    Hi i am new to J2ME. Does any body have the source code for playing video?

    The WTK includes a video player example. I would start by looking there. In addtion SE and Nokia (if I remember correctly) both have video examples on their developer web sites.
    The developer sites are
    http://forum.nokia.com
    http://developer.sonyericsson.com
    For some of my midlets I use a utility class. You can view the source here:
    http://hostj2me.cliqcafe.com/www/forumtopicview.html?fid=46&categoryId=36&fpn=0
    Works for my needs;

  • Does anyone have the AUTHORIZATION CODE (5 spaces) for PhotoShop CS2?

    I cannot get my PhotoShop CS2 to activate - at one time the Adobe support gave me the
    5 (JUST FIVE) box numbers for authorization - now they won't give them out....and I bought
    my program - I just need to be able to use it again, after having to switch from XP Pro to Win7.
    Anyone - help???

    All you need to do is download the new non-activation version of CS2 from Adobe
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Install then enter the new serial number provided by Adobe at that link

  • KMS Error 0xC004F015 on Windows 2008 R2 - Does anyone have the correct fix for this please?

    I am in the process of migrating my KMS server from Windows 2003 to Windows 2008 R2 64-bit. My Windows 2003 server has been happily providing my Windows 7 clients with licenses for well over a year. I have followed these migration steps in this forum article:
    social.technet.microsoft.com/Forums/windows/en-US/cd4177bd-8df5-4a66-afdc-c760398b7e7f/migrating-kms-server-from-one-computer-to-another?forum=itprovistaactivation
    I cannot get passed step 5. As soon as I try step 5 with my Windows 7 KMS key I receive error 0xC004F015. Despite reading countless articles on Microsoft forums and also speaking the Microsoft licensing who frankly were of no help at all, I am none the wiser
    how to resolve this fault. My questions are:
    1. Should my Windows 2008 R2 server be licensed with a MAK or KMS key? Does this matter?
    2. Some articles I have read suggest if you use a Windows Server "C" license then you do not need to use a Windows 7 KMS key. I've tried this but it just tells me I have insufficient licenses.
    3. When installing my windows 7 license key via the slmgr /ipk command should I be using my Windows 7 Professional KMS key? This works fine on my old Windows 2003 server, but Windows 2008 does not like it at all. Would I be better simply moving my KMS server
    to a Windows 7 desktop instead?
    4. I also want my Windows 2008 R2 to carry out my KMS activation for Office 2013. Can this run on the same server as my Windows 7 KMS key should I ever get it to work
    Thank you anyone who can shed some light on this absolutely baffling error. Surely some one out there has the definitive answer.
    Regards
    N Buck

    I am in the process of migrating my KMS server from Windows 2003 to Windows 2008 R2 64-bit. My Windows 2003 server has been happily providing my Windows 7 clients with licenses for well over a year. I have followed these migration steps in this
    forum article:
    social.technet.microsoft.com/Forums/windows/en-US/cd4177bd-8df5-4a66-afdc-c760398b7e7f/migrating-kms-server-from-one-computer-to-another?forum=itprovistaactivation
    I cannot get passed step 5. As soon as I try step 5 with my Windows 7 KMS key I receive error 0xC004F015. Despite reading countless articles on Microsoft forums and also speaking the Microsoft licensing who frankly were of no help at all, I am none the wiser
    how to resolve this fault. My questions are:
    1. Should my Windows 2008 R2 server be licensed with a MAK or KMS key? Does this matter?
    2. Some articles I have read suggest if you use a Windows Server "C" license then you do not need to use a Windows 7 KMS key. I've tried this but it just tells me I have insufficient licenses.
    3. When installing my windows 7 license key via the slmgr /ipk command should I be using my Windows 7 Professional KMS key? This works fine on my old Windows 2003 server, but Windows 2008 does not like it at all. Would I be better simply moving my KMS server
    to a Windows 7 desktop instead?
    4. I also want my Windows 2008 R2 to carry out my KMS activation for Office 2013. Can this run on the same server as my Windows 7 KMS key should I ever get it to work
    Hi,
    on your KMShost, if that is a WindowsServer OS, you cannot use a WindowsClient (WinVista/Win7/Win8/Win8.1) KMShost product key, you must use a WindowsServer KMShost product key.
    Further, the KMShost product key must match the OS of the KMShost machine (or exceed/better it).
    e.g. if your KMShost machine is WS2008R2, you must use a WS2008R2 (or higher e.g. WS2012 or WS2012R2) product key.
    If you will use a higher product key, you will need to install the relevant patch package to do so.
    When you install a Windows KMShost product key onto a machine, the Windows KMShost product key completely replaces the previous Windows product key of that machine [it serves two purposes, (1) replace the previous key, (2) activates the KMShost feature].
    So, your KMShost is neither licensed as MAK nor KMS, it becomes a KMShost.
    For WS2008R2 KMShosts, you can install one of 3 types (channels/groups) of KMshost pkey.
    The channel/group pkey you choose, is based upon the maximum product editions you wish to perform KMSclient activations for.
    http://technet.microsoft.com/en-us/library/ff793411.aspx
    For your issue #2, are you attempting to install your Windows7 KMS key upon the KMShost or a KMSclient?
    For your issue #3, are you attempting this upon a KMSclient? (Volume License editions on Win7Pro or Win7Ent, are already pre-loaded with a KMSclient pkey, so you should have no need to alter the client keys). As previously mentioned, no Win7 key is needed/possible
    for the KMShost, if the KMShost is WS2008R2.
    For your issue #4, yes, your WS2008R2 KMShost can also act as KMShost for Office2010 and/or Office2013, this requires a further patch, and the installation of the relevant Office KMShost pkey.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Does anyone have the iSkin Duo for their nano?

    if you do, I'm just wondering when my order for it will come in. I ordered it off the website, and I'm waiting for it from thorold in Ontario, Canada...I ordered it on December 29, can anyone tell me when I should expect it to come it?

    well i have so many cases now, iskin duo included, i think that it is great! it looks great, feels great and makes me happy!

  • Anyone have the XSL-FO for default: vertical report, look 2

    Hello everyone,
    I have a report with the default: vertical report, look 2 used to display the data. I want to export this as a PDF.
    The only option I have is "default", and that gives me a single row of header and data, that over-runs the buffer.
    I want to export the PDF in the same format. Does anyone have the XSL-FO for default: vertical report, look 2?
    Thanks!!

    Why did you continue the process of purchasing the accessories and phone if you could have proved the phone did work by going home and charging the device? That is not the reps job. You need to come prepared to the store if you want to get the most for the trade in.
    Any who here ya go:
    Verizon Communications Inc.
    140 West St
    New York, NY 10007

  • Does anyone have the code to use an image button as the reset button?

    Does anyone have the code to use an image button as the reset button? I'm finally at the end of the form and got the submit button to work as an image button, but cannot do the same with the reset button.  Any help is greatly appreciated!

    I agree. 
    http://www.456bereastreet.com/archive/200909/almost_never_add_a_reset_button_to_a_form/
    Nancy O.

  • PLEASE HELP! Does anyone have the software for the old 20" cinema display?

    CAN ANYONE HELP?! Does anyone have the software for the old 20" cinema display model number M88932M/A? (brought early 2004- the version with no control button) I can't find my manual or software CD for my Apple Display anywhere - I can't remember if the screen was even shipped with them. Because do not have this software I can't control anything to do with my screen e.g the brightness/contrast etc.
    I can't find the link to download the software anywhere on the apple website! (I have spent hours looking). If you know the link, I'd be really grateful if you could email it to to me. Or does anyone have the software CD that I could borrow and then return immediately? Please get in touch if you do. Many thanks! email address: [email protected]

    Hi Nathan,
    Thank you so much that was very kind of you! You must have the same screen as me as mine is the clear fronted on too.
    I have downloaded the OS X version, When I went to install it, but I got a message up saying the software was already on my machine. It must part of the Tiger OS, becuase I haven't installed anything.
    I have a quick question for you . . . Should the software you put up for me enable to me run "Display Calibrator Assistant" in the System preference or is the software from the CD hidden something else and I am looking in the wrong place on my mac?
    I did read somewhere when I got under the apple menu there should be a "monitor" menu - I don't have that but that maybe a classic thing?
    Many thanks for you help I really appreciate it!
    Purplecrazymoo

  • HT1386 I have just purchased an ipad3 mainly for storing and viewing my photos but I cannot get my photos to sinc from itunes. Does anyone have the solution.

    I have just purchased an ipad3 mainly for storing and viewing my photos but I cannot get my photos to sync using itunes. Does anyone have the best solution please?

    See http://support.apple.com/kb/HT4236
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
    This may interest you.
    Expand your iPad's storage capacity with HyperDrive
    http://www.macworld.com/article/1153935/hyperdrive.html
    On the road with a camera, an iPad, and a Hyperdrive
    http://www.macworld.com/article/1160231/ipadhyperdrive.html
    Since you are new to iPad.....
    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Does anyone have the link for VZW updater software for LG3? Thanks!

    Does anyone have the link for VZW updater software for LG3? Thanks!

    I never did get it to work, says wrong cable but I know that's **. My objective was to install Lollipop which I'm installing now via OTA. Thanks for the help!

  • I just updated my Iphone 4 for IOS5. The photo lybrary just duplicated after sync. Does anyone have the same problem?

    I just updated my Iphone 4 for IOS5. The photo lybrary just duplicated after sync. Does anyone have the same problem?

    Try this
    https://discussions.apple.com/message/15135297#15135297

  • Last update for OS 10.8.2 caused big problems with HP photosmart B110 printer /scanner cannot scan does anyone have the same problem or a solution?

    Last update for OS 10.8.2 caused big problems with HP photosmart B110 printer /scanner cannot scan does anyone have the same problem or a solution?
    iMac is connected via wirelss to printer/scanner. All was working OK until update.

    Assuming that the HP software is up-to-date, but still not working, have you tried Image Capture in the Applications folder. Does that work?

  • Songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    I have Imatch and songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    By "hard reset" you mean hold down the Home and power buttons until the iOS device restarts, correct?

  • Does anyone have the #  for apple customer support?

    does anyone have the # for apple customer support?

    1 800 MY APPLE
    Nano 4GB black,Moto RAZR V3 black, PSP, all kinds of cases for nano,radio/remote   Windows XP   <img src="http://i36.photobucket.com/albums/e13/superman5656/s.gif"align="right"</span>

Maybe you are looking for

  • Gmail outgoing server issues with Apple Mail

    Hi, I'm currently running OS X 10.8.5 Mountain Lion, and trying to set up my gmail account in Apple Mail. I can recieve mail just fine, but am not able to send mail. for the outgoing server i typed "smtp.gmail.com." When i look at the Mail Connection

  • Page Display / Link Target Question

    After taking some abuse for a decidedly old fashioned layout for a business website, I remodeled it using the "Holy Grail" 3 column layout using div tags. The left column is the nav bar.  The center column is intended to have a list of products(name

  • Footer Issue (not what you think)

    I've spent over an hour now watching video turotirals and reading common issues regarding footers in Adobe Muse. My issue is that after I create text, check the footer box as well as the sticky footer box in preferences, and place it below the footer

  • How can I submit evidence that I am a student?

    I tried to submit evidence that I am a student but apparently exists an error in the system. How can I continue with this process. I already bought my product but I cannot download it yet because I assume that I have not sent evidence yet.

  • How to remove the Detail column programmatically in Master detail table

    Hi, I have a master detail table. I want to remove the show Hide (Detail) link from the table programmatically based on some serach criteria. Is it possible to do that. Thanks in Advance, Kaushik Rambhiya