Jump to content

user and email match on php...


luvrockz

Recommended Posts

i use a user management system which can be download this from http://rapidshare.com/files/39584153...LL-DGT.zip.rar

 

i also have a script which emails a link to the entered email address.... i want it to check if the entered email matches with the logged in users email on the database.....

this email script can be downloaded from

http://rapidbay.net/download/1364276...kurl-v1-7.html

 

 

as im totally new to php i wud appriciate if u cud explain a lil bit.. pls help....

Link to comment
Share on other sites

Dude,

 

I would say you need to customize the system by editing the core. I'm sure your session variable will have the info about the logged in user. So write a script that will do a small validation just before sending mail.

 

script may be like this

 

$mail = $_POST['mail_id'];

$query = mysql_query("select email_id from user_table where user_id = ".$_SESSION['user_id']);

$user_email = mysql_result($query, 0);

if($mail == $user_email){

// do required when entered email ID == logged in user's mail ID

}

else{

// do required when entered email ID != logged in user's mail ID

}

 

------ hope im in the right track

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.