msafvati Posted January 10, 2008 Share Posted January 10, 2008 hi i want to see a sample code for AUTHENTICATION USERS. How Compare Input Data (Example : Name from txt1) with Data that insert in Database?if Name EXISTENCE in Database So Show me A message.. 1 - I use from Enginsite for php 2 - my OS IS XP 3 - Connection to Database is ODBC 4 - My Database is MS-ACCESS Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/ Share on other sites More sharing options...
adam291086 Posted January 10, 2008 Share Posted January 10, 2008 Just google php authentication scripts. There are Hundreds out there Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-435425 Share on other sites More sharing options...
jadedchron Posted January 10, 2008 Share Posted January 10, 2008 Just google php authentication scripts. There are Hundreds out there I've done this and unfortunately, a lot of them are very insecure. Maybe you can provide one you know is business safe? Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-435928 Share on other sites More sharing options...
revraz Posted January 10, 2008 Share Posted January 10, 2008 http://www.roscripts.com/PHP_login_script-143.html Just modify it to make it safe or better. Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-435937 Share on other sites More sharing options...
The Little Guy Posted January 10, 2008 Share Posted January 10, 2008 Create a column in your database such as auth set the default to 0 Create a second column in your database such as auth_code this will hold the uses auth code value Use this to create an authentication code: http://phpsnips.com/snippet.php?id=24 then replace this: echo $str; with sending an email to the user, the content will contain some text and a link that would look like this: http://mysite.com/authenticat.php?code=hdfkio234k234is&id=6436 code = the authentication code id = user id number. the id and code must match the id and auth_code in the database, to be real. if they match, set the auth field in the database equal to 1, else leave it as 0. 0 = not authenticated 1 = authenticated Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-435943 Share on other sites More sharing options...
msafvati Posted January 11, 2008 Author Share Posted January 11, 2008 tank u you guid me but i want to know how input data with Filed name is mached? this is important for me example : <input type=''text" name="txt1"> <input type=''text" name="txt2"> ************************************ if ($_GET['txt1']==(Fieldname Value in DB)) { show me a message } see example! i want to know, how doing this operation (if ($_GET['txt1']==(Fieldname Value in DB)) )? Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-436319 Share on other sites More sharing options...
adam291086 Posted January 11, 2008 Share Posted January 11, 2008 Use this tutorial. It shows how to verfiy user with values in a database http://www.php-mysql-tutorial.com/user-authentication/database.php> The tutorial starts off without the database and then adds it in later on. Read it all Quote Link to comment https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-436328 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.