Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /home/busines2/public_html/wp-includes/wp-db.php on line 3182
Daymond John: How I Learned to Be a Leader

Daymond John: How I Learned to Be a Leader

Get Inc. Straight to Your Inbox

SIGN UP FOR TODAY’S 5 MUST READS

‘);

$(‘.status’).css(‘display’, ‘flex’);

$.post(‘../lib/newsletter-signup.php’, formValues, function(data) {
if (data == ‘1’) {
$(‘.form-messages’).html(“Thank you for signing up for Inc. Must Reads!”);
document.cookie = “incNewsletterFlyinCompleted=true; expires=Fri, 1 Jan 2100 00:00:00 UTC; path=/”;
setTimeout(function() {
$(‘#newsletter-flyin’).remove();
}, 2000);
} else if (data == ‘-1’) {
$(‘.form-messages’).html(“This email address is already signed up.”);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 5000);
} else {
$(‘.form-messages’).html(“Something went wrong…”);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 2000);
}
});
} else {
$(‘.form-messages’).html(“Please enter a valid email address”);
$(‘.status’).css(‘display’, ‘flex’);

setTimeout(function() {
$(‘.status’).css(‘display’, ‘none’);
}, 2000);
}

return false;
});
});

Related Posts:

  • No Related Posts