Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail_status = mail($mail_to, $subject, $body_message, $headers);
- if ($mail_status) {
- echo "{'url':'contact_page.html#contactSuccess'}";
- } else {
- echo "{'url':'contact_page.html#contactError'}";
- }
- complete: function(){
- ...
- window.location = s.responseJSON.url
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement