Please enter your email.]]>“);
} else {
var fregt = jQuery(“#fcdp-trs-nw”).val();
jQuery.ajax({
type : “POST”,
dataType: “json”,
cache: false,
url : ‘https://www.educba.com/edb_jx/gtk_fregtk.php’,
data: ‘t=’ + fregt,
async: true,
success : function(response){
jQuery(“#fcdp-trs-nw”).attr(“value”,response.tk);
fregt = jQuery(“#fcdp-trs-nw”).val();
jQuery.ajax({
method : “POST”,
dataType: “json”,
cache: false,
url : ‘https://www.educba.com/ajax/nwz-frz-rgsz.php’,
data : ’em=’ + uem + ‘&sgs=’ + sg + ‘&envir=’ + plt + ‘&upf=’ + user_envir+’&urlx=’ +urlx+’&zipcode=’+zipcode+’&mntrm=’+mntrm + ‘&t=’ + fregt + ‘&mb=’ + mbn,
async: true,
success : function(resp){
jQuery(“#nw-loader-free-crs”).css(“display”,”none”);
if(resp.access == “no”) {
if(resp.eml_error == “yes”) {
jQuery(‘input[type=”submit”]’).attr(‘disabled’, false);
jQuery(“#nw-error-free-crs”).css(“display”,”block”);
jQuery(‘#nw-error-free-crs’).html(“
Please enter your valid email (Check your email for spelling mistakes).
“); }else if(resp.mb_error == “yes”) { jQuery(‘input[type=”submit”]’).attr(‘disabled’, false); jQuery(“#nw-error-free-crs”).css(“display”,”block”); jQuery(‘#nw-error-free-crs’).html(“
Please enter all the details.
“); }else if(resp.usr_exists == “yes”) { jQuery(‘input[type=”submit”]’).attr(‘disabled’, false); jQuery(“#nw-error-free-crs”).css(“display”,”block”); jQuery(‘#nw-error-free-crs’).html(“
Specified email is already registered. Please provide another email.
“); }else if(resp.tk_valid == “no”) { jQuery(‘input[type=”submit”]’).attr(‘disabled’, false); jQuery(“#nw-error-free-crs”).css(“display”,”block”); jQuery(‘#nw-error-free-crs’).html(“
Error Occurred. Please refresh the page and try again.
“); } } else { if(resp.tk_valid == “yes”) { jQuery(‘#email-form-free-crs’).css(“display”,”none”); jQuery(‘input[type=”submit”]’).attr(‘disabled’, false); jQuery(“#nw-error-free-crs”).css(“display”,”block”); jQuery(‘#nw-error-free-crs’).html(“
Registration for Free Trial successful. Please check your email for login details.
“); window.location.href = “https://www.educba.com/my-courses/index.php”; } else { jQuery(‘input[type=”submit”]’).attr(‘disabled’, false); jQuery(“#nw-error-free-crs”).css(“display”,”block”); jQuery(‘#nw-error-free-crs’).html(“
Error Occurred. Please refresh teh page and try again..
“); } } } }); } }); } return false; e.preventDefault(); }); });
Source