how to validate user by sending email link or code on email

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mirror
    replied
    Originally posted by softwarefreak View Post
    Try by yourself you'll succeed,
    Instead of writing this >>>>> "but m not tht good in coding to make tht script working".
    Go thru some tuts,
    Every great php programmer alive toay,started with this>>>

    <?php
    echo "hello world";
    ?>
    best wishes...
    yup bro i had tried a lot i know its simple checked many tutorials online , but dnt know why i m not able to integrate it into lavalair , see the date when my topic was created since then i hve been trying but this validation thing in lavalair is always coming in between ,

    Leave a comment:


  • softwarefreak
    replied
    Originally posted by mirror View Post
    any edits for lavalair, this email verification thing will solve a lot of problems
    Try by yourself you'll succeed,
    Instead of writing this >>>>> "but m not tht good in coding to make tht script working".
    Go thru some tuts,
    Every great php programmer alive toay,started with this>>>

    <?php
    echo "hello world";
    ?>
    best wishes...

    Leave a comment:


  • mirror
    replied
    any edits for lavalair, this email verification thing will solve a lot of problems

    Leave a comment:


  • razzbee
    replied
    You can do this too
    Code:
    $confirm_code=substr(md5(mt_rand(99,999)),1,31);
    //inserting into db
    $insert_confirm=$dbc->prepare("INSERT INTO confirm_keys SET token=?,user_id=?;");
    
    $insert_confirm->bind_param("si",$confirm_code,$user_id);
    $exec_sql=$insert_confirm->execute();
    
    if($exec_sql==TRUE){
    //now lets send user the email,note that the mail() is not reommended since it will sometimes end up in user's junk mail or spam box
    $url="ursite.com/confirm.php?token=$confirm_code";
    
    $email_msg="Hello User,to confirm your identity,please click on $url";
    mail("user_email","Email subject",$email_msg);
    }
    else{
    
    echo "A error occured,plz try again later";
    
    }
    as softwarefreak said,U will need to read and research more on this to do it in an advanced way,THIS IS JUST BASIC

    Leave a comment:


  • softwarefreak
    replied
    Originally posted by mirror View Post
    hey bro better check this topic , http://coding-talk.com/f14/how-to-va...in-email-8449/

    i also got hints like software freak , but m not tht good in coding to make tht script working hope u can find out a way , if wanna share i would b grateful
    Buddy,this thing is damn simple,A person just needs to know the basics

    Leave a comment:


  • mirror
    replied
    hey bro better check this topic , http://coding-talk.com/f14/how-to-va...in-email-8449/

    i also got hints like software freak , but m not tht good in coding to make tht script working hope u can find out a way , if wanna share i would b grateful

    Leave a comment:


  • softwarefreak
    replied
    Originally posted by manavworld View Post
    can you please solve this problem? how i could validate user by sending code or verification link to his email?
    help me quick please.
    It's easy man,

    Generate an alphanumeric string in registration script,

    Lets say
    $confirm_key = "dheyg36372i29292";// This'd be your generated,use md5
    $e-mail = "someone@domain.com";
    save it in a file or database,

    Use mail() function,
    in the body just include this URL



    make a confirm.php file

    /////////////////
    $key = $_GET['key'];
    //Just match the stored email & confirm key,
    $sql = "SELECT * from temp WHERE key='$key'";
    ////
    Continue with the user
    THE END

    However,to add higher functionality,Use your brain
    Last edited by softwarefreak; 31.01.12, 00:41.

    Leave a comment:


  • how to validate user by sending email link or code on email

    can you please solve this problem? how i could validate user by sending code or verification link to his email?
    help me quick please.
Working...
X