Jump to content

AUTHENTICATION USERS.


msafvati

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/85333-authentication-users/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-435943
Share on other sites

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)) )?

Link to comment
https://forums.phpfreaks.com/topic/85333-authentication-users/#findComment-436319
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.