473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to create Log-in form

i have my database in my local server named SPMS which contains table named
"tbl_users", the table has the ff fields; "username", "password",
"employee_name".
In my Log-In form i have ff textbox "pass", and "uname". I need a code that
runs and check if password for the user name is on the record, and prompt a
msgbox showing the Employee Name.

resti
--
VB.net enthusiast
Jul 21 '05 #1
3 1252
Hi,

Try with sql: select employee_name from tbl_users where username = uname and
password = pass.

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"Resti M. Guay" <Re********@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
i have my database in my local server named SPMS which contains table named
"tbl_users", the table has the ff fields; "username", "password",
"employee_name".
In my Log-In form i have ff textbox "pass", and "uname". I need a code
that
runs and check if password for the user name is on the record, and prompt
a
msgbox showing the Employee Name.

resti
--
VB.net enthusiast

Jul 21 '05 #2
> Try with sql: select employee_name from tbl_users where username = uname
and
password = pass.

Once you get this working, I would suggest taking a look at using parameters
to ward off sql injection security hacks. That's the type of hack where
user enters in ' or 1=1 as the password and if you use the above pseudo code
a bit too literally, you'll be exposing your whole site.
Jul 21 '05 #3
Hi Filip,

Sure, I am aware of this, it was just an example and of couse is meant to be
used with parameters.

--
Regards,
Peter Jausovec
(http://blog.jausovec.net)
"Flip" <[remove]ph******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Try with sql: select employee_name from tbl_users where username = uname

and
password = pass.

Once you get this working, I would suggest taking a look at using
parameters
to ward off sql injection security hacks. That's the type of hack where
user enters in ' or 1=1 as the password and if you use the above pseudo
code
a bit too literally, you'll be exposing your whole site.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Pongthai | last post by:
Hi, I got a backup file from my friend which needs 11 GB to hold the transaction log. I tried to restore this database but an error message: "MODIFY FILE encountered operating system error...
0
by: mqsash | last post by:
Hi, I have a simple C# assembly ( .dll ) which I deployed through an HTML.The complete assembly is as simple as this using System; using System.Windows.Forms; namespace testAssemblyNS {...
1
by: qushui_chen | last post by:
my write code is(i know that is error),how can I do?: ------------------------------------------------------------------- ThreadArray=new Thread(new ThreadStart(this.send_write_log( ec_send_email,...
2
by: siliconpiNOSPAM | last post by:
Hi, I'm new to C# programming and not sure how to do this, but basically, I want to create a function exactly like how System.Console.WriteLine() works. eg, if I do:...
1
by: liujixuan | last post by:
I am a new bie of Python. I knew there is module for syslog of Linux, but I want to create a syslog server on the windows server like windows 2k or 2k3, to collect the log message sent from our...
1
by: Ozz | last post by:
Hello, I am trying to turn on General logging on mysql server . If I go >mysqld -l filename on shell, it says "command not found". What is the best way to create General log on a live server. ...
6
by: CTRC | last post by:
Hello, I'm running into a wall when trying to figure out the Perl code to complete the following. I need run a perl script that opens up a server log file (lets call this file SERVER_LOG.txt,...
0
by: vaibhavsumant | last post by:
hi I am trying to create the database using a BAT file but the script is not recognizing the username and password sent as parameters and gives error. The BAT looks like following - and...
1
by: ni3b007 | last post by:
I m having oracle 10g while creating database its giving me error database not mounted this is my p file; ########################################### # Cache and I/O...
12
by: Vallabh | last post by:
I want to create a separate log that includes an I (logIN) , userid, and date/timestamp from a detailed log. This type of data compresses very well so I can store years of it. I need script to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.