js.get
-
There's a need to do a script page on the hip that will be sent back to json's file:
{"count":/\*любая цифра\*/}
How do you do that so that the php can still check the data? js.
$.ajax
-
<?php $number = 5; $res['count'] = $number; echo json_encode($res); ?>