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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.