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.... Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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; ?> Quote Link to comment 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.