vinson89 Posted November 2, 2013 Share Posted November 2, 2013 <?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { $username = $_POST['username']; $activation_code = $_POST['activation_code']; $db_host = "localhost"; $db_name = "databasename"; $db_use = "root"; $db_pass = "password"; $link = mysql_connect($db_host, $db_use, $db_pass); mysql_select_db($db_name, $link); $command = "UPDATE email_activation SET check_activation='$activation_code' WHERE username='$username' and activation='$activation_code'"; $result = mysql_query($command); if ($result) { echo "Congratulations. Your membership has been activated …"; }else{ echo ("You've entered an invalid username / activation code – please retry"); } } ?> Link to comment https://forums.phpfreaks.com/topic/283535-how-can-we-add-all-details-in-email_activation-db-to-member-db-at-check-activation-scriptphp/ Share on other sites More sharing options...
Ch0cu3r Posted November 2, 2013 Share Posted November 2, 2013 What is your question? Is this your code, or you have you randomly grabbed it from the internet? Link to comment https://forums.phpfreaks.com/topic/283535-how-can-we-add-all-details-in-email_activation-db-to-member-db-at-check-activation-scriptphp/#findComment-1456606 Share on other sites More sharing options...
vinson89 Posted November 2, 2013 Author Share Posted November 2, 2013 my question is how to add the script that allow registered user details from email_activation db to member db during verification process done using the script above. Link to comment https://forums.phpfreaks.com/topic/283535-how-can-we-add-all-details-in-email_activation-db-to-member-db-at-check-activation-scriptphp/#findComment-1456607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.