- POST json data using form
- {"method":"like","data":{"type":1,"id":123}}
- <script>
- jQuery(document).ready(function(){
- jQuery("#form").submit();
- });
- </script>
- $(document).ready(function(){
- $.post("script.php", { <?php echo $string; ?> },
- function() {
- alert("Your test.php page received the string!);
- });
- });