Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $mail_status = mail($mail_to, $subject, $body_message, $headers);
  2. if ($mail_status) {
  3. echo "{'url':'contact_page.html#contactSuccess'}";
  4. } else {
  5. echo "{'url':'contact_page.html#contactError'}";
  6. }
  7.  
  8. complete: function(){
  9. ...
  10. window.location = s.responseJSON.url
  11. ...
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement