Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#click_ajax").click(function() {
- alert(counter);
- $.ajax({
- type: 'post',
- url: 'test.php',
- data: {counter:counter},
- success: function () {
- alert("SENT!");
- }
- });
- });
- <?php
- $counter = $_POST['counter'];
- echo $counter
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement