luvrockz Posted July 24, 2010 Share Posted July 24, 2010 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 https://forums.phpfreaks.com/topic/208779-user-and-email-match-on-php/ Share on other sites More sharing options...
vichu.1985 Posted July 28, 2010 Share Posted July 28, 2010 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 https://forums.phpfreaks.com/topic/208779-user-and-email-match-on-php/#findComment-1091995 Share on other sites More sharing options...
luvrockz Posted July 28, 2010 Author Share Posted July 28, 2010 bro did u take a look at the scripts..... because i am totalyy new to php... and i dnt reallyy knw anything about this.. can u pls take a look at it and can u explain it a lil bit.... thankzzz Link to comment https://forums.phpfreaks.com/topic/208779-user-and-email-match-on-php/#findComment-1091996 Share on other sites More sharing options...
luvrockz Posted July 28, 2010 Author Share Posted July 28, 2010 so bro maybe this could help a lil....., i use this code to display the email of the logged in user.. <?php require_once("../slpw/sitelokpw.php"); echo $slemail; ?> Link to comment https://forums.phpfreaks.com/topic/208779-user-and-email-match-on-php/#findComment-1091999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.