Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <form id="formID">
  2. <input class="flt-right marg-top-50" type="submit" value="Next" name="next"/>
  3. </form>
  4.  
  5. <form>
  6. <?php preg_match_all('/(d[d.]*)/', $tesco_search_array_price[$key], $matches);?>
  7. <input type="checkbox" class="chkbox" name="ingredients" value="<?php echo $name[$key]; ?>" data-price=" <?php echo $matches[0][0];?>">
  8. </form>
  9.  
  10. $('#formID').submit(function(){
  11.  
  12. var ajaxURL = 'ajax.php';
  13.  
  14. $.ajax({
  15. type: 'POST',
  16. url: ajaxURL,
  17. data: {'name': text,'price':price },
  18. success: function(msg) {
  19. }
  20. });
  21. return false;
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement