•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 402,689 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,427 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 840 | Replies: 1 | Solved
•
•
Join Date: Mar 2007
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 0
Hi all. I have a login Form where user can insert Nickname & Password.
I have a database where i have listed new registered user and store their information.
The problem is when I control the Form data "pass" and check if it's equal to the rst("pwd")
into the database.
It never match....
The 2 password are equal but it look like if they are different.
Someone can help me please?
I have a database where i have listed new registered user and store their information.
The problem is when I control the Form data "pass" and check if it's equal to the rst("pwd")
into the database.
It never match....
The 2 password are equal but it look like if they are different.
Someone can help me please?
asp Syntax (Toggle Plain Text)
var con; var conString; con = Server.CreateObject("ADODB.Connection"); conString = "Provider=Microsoft.Jet.OLEDB.4.0; "+ "Data Source= " + Server.MapPath("/negozio.mdb"); con.Open(conString); var n, p, q; n=Request.Form("nick"); p=Request.Form("pass"); var sSQLString; var rst; rst = Server.CreateObject("ADODB.Recordset"); sSQLString = "SELECT pwd FROM utenti WHERE nick='"+n+"';"; rst = con.Execute(sSQLString); q=rst("pwd"); if (p != q) {Response.write ("Password errata, reinserire la password corretta"); Response.AddHeader ("Refresh", "5;URL=login.asp"); con.Close( ); con = null; } else {Response.write ("Salve " + n + " benvenuto, tra un attimo potra accedere alle opzioni del sito"); Response.AddHeader ("Refresh", "5;URL=home.asp"); con.Close( ); con = null; }
Last edited by roby4eldiablo : Apr 30th, 2008 at 9:51 am.
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
advice age amd avatar backup blue gene breach business chips crack daniweb data protection database development dos energy enterprise europe forensic government hacker hardware help hp ibm ibm. news information linux medicine memory microsoft news open source openoffice password pc playstation ps3 red hat security server sql strength sun supercomputer supercomputing survey technology ubuntu x86
- Validating a User Imput with SQL Database (Login) (C#)
- Create a Login page (asp,c#,sql2k5) (C#)
- code for login and password..using vb6 (Visual Basic 4 / 5 / 6)
- Please help with login page code behind (ASP.NET)
- problems with sessions and login.php (PHP)
- Database encryption (ASP.NET)
- login check (ASP)
- php help needed for login (PHP)
Other Threads in the ASP Forum
- Previous Thread: What is client side vbscript?
- Next Thread: Getting Started with asp.net



Threaded Mode