Guest User

Untitled

a guest
May 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. fromName = $.base64.encode($('#voucherName').val())
  2.  
  3. $.ajax({
  4. url: frontend_ajax_object.ajaxurl,
  5. type: "POST",
  6. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  7. data: 'action=wpgv_doajax_pdf_save_func&nonce='+nonce+'&template='+templates_id+'&for='+forName+'&from='+fromName+'&value='+voucherValue+'&message='+message+'&expiry='+expiry+'&code='+code+'&firstname='+firstName+'&lastname='+lastName+'&email='+email+'&address='+address+'&pincode='+pincode+'&paymentmethod='+paymentMethod,
  8. success: function(a) {
  9. window.location.replace(a);
  10. },
  11. error: function() {
  12. alert('Error occured');
  13. }
  14. });
  15.  
  16. $from = sanitize_text_field(base64_decode($_POST['from']));
Add Comment
Please, Sign In to add comment