codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  help me  ankitrastogi1234 at 09:13 on Thursday, December 13, 2007
 

check this and ifthere is any error then plz mail me the right code


<html>
<head><title>validation of user</title></head>
<body>
<p align="left"><img border="0" src="/forum/deepeeka_logo.jpg" width="135" height="53"></p>
<%@ page language="java" import="java.io.*,java.sql.*" contenttype="text/html" %>
<%
int flag=0,i=0;
String s1=request.getParameter("id");
String s2=request.getParameter("pass");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:ank");

Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from userrec");
while(rs.next())
{
if((s1.equals(rs.getString(1))) && (s2.equals(rs.getString(2))))
{

response.sendRedirect("/ankit/shop.html");

}

else
{
response.sendRedirect("/ankit/un.html");
}

}



%>
</body>
</html>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  updat Date automatic
•  Need javascript help
•  help me
•  How to display a message box when record is temporary stored in session/grid view
•  Re: open excel file in html page
•  Memory Leaks
•  Re: Unlink
•  Call report done with Crystal Report 9 with Visual Basic 6.0
•  Call report done with Crystal Report 9 with Visual Basic 6.0


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007