Advertisement
Guest User

php post

a guest
Dec 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Maybe some one know why that code not works anymore in php 7 ? Beforethta was working all ok. Calculation price.
  2.  
  3. <script>
  4. $(function(){
  5. $('#check_price').click(function(){
  6. var code= $('#something value').val();
  7. var qty = $('#sometinhg value').val();
  8. var re = new RegExp(/^.*\//);
  9. var rPaths= re.exec(window.location.href);
  10.  
  11. $("#check_title").html('Calculate price..');
  12. $.ajax({
  13. type: "POST",
  14. url: rPath+"home/price",
  15. data: {ccode:ccode,qty:qty}
  16. })
  17. .done(function(msg) {
  18. $("#check_title").html('calculated');
  19. $('#price_set').slideDown();
  20. $('#price_set').html(msg);
  21. });
  22. });
  23. });
  24. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement