Originally posted by softwarefreak
View Post
how to validate user by sending email link or code on email
Collapse
X
-
-
Originally posted by mirror View Postany edits for lavalair, this email verification thing will solve a lot of problemsyou'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:
-
any edits for lavalair, this email verification thing will solve a lot of problems
Leave a comment:
-
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"; }
Leave a comment:
-
Originally posted by mirror View Posthey 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:
-
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:
-
Originally posted by manavworld View Postcan you please solve this problem? how i could validate user by sending code or verification link to his email?
help me quick please.
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 brainLast 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.Tags: None
Leave a comment: