I cant figure out why this wont redirect when everything looks in place.
I have used Location /path but just doesn\'t move from the main page.
Email sends and fo
php
if (mail($to, $subject, $message, $headers)) {
echo $redirect_thankyou;
die();
}
else
{
echo $redirect_error";
die();
}
javascript
$.post("hero-form.php", $("#register-form").serialize(),function(result){
if(result){
location.replace(result);
$('#hero-success-notification').addClass('show-up');
$('#hero-submit').addClass('disabled');
}
});