thanks for your response.
some one inform me about the encryption routines address is
http://aspnet.4guysfromrolla.com/articles/103002-1.aspx
(it deals with ASP.net, I will get the idea).
Javascript version of MD5
http://pajhome.org.uk/crypt/md5/
how I can validate the date field ?
you may give me syntax ?
My another problem is that
when I save the entry (contract.asp) it save double values
in the table, I check my query in sql analyzer, there
is no problem, by the sql analyzer it save single record.
why it save double records by the asp file (contract.asp)
in sql server table ?
Please check the code is following.
isql1="insert into emp (empno,fname,mname,lname,posit,dept,strdate,emptyp e) values ("
isql2="'" & empno & "',"
isql3="'" & fname & "',"
isql4="'" & mname & "',"
isql5="'" & lname & "',"
isql6="'" & posit & "',"
isql7="'" & dept & "',"
if IsDate(strdate) then
isql8="'" & strdate & "',"
else
isql8="NULL,"
end if
isql9="'" & emptype & "')"
sql=isql1+isql2+isql3+isql4+isql5+isql6+isql7+isql 8+isql9
cn.Execute sql
cn.Execute sql
if err.number=0 then
Response.Redirect("add_emp2.asp")
else
Response.Redirect("add_emp3.asp")
end if
regards.
Mateen
Quote:
quote:Originally posted by U.N.C.L.E.
I just implemented this on a user login table in SQL...
You would typically, encrypt the password before storing into the table. Depending on your programming environment, you can search for a number of encryption routines. My personal preference is AES but the source code might be difficult to find for other than C++.
There is also the RC4 algorithm which can be readily found but far less secure.
As for the date problem, you might try to validate the date field entry before storing into the database field...
|