game/ajax.php

20 lines
556 B
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?
setlocale(LC_CTYPE ,"ru_RU.CP1251");
if(isset($_GET['test'])) {
echo '<27><><EFBFBD><EFBFBD> 5<br>'.$_GET['test'].'<br>'.$_POST['test_post'].'';
die();
}
echo '<27><><EFBFBD><EFBFBD> 1<br>';
?>
<script src="https://new-combats.com/js/jquery.js" type="text/javascript"></script>
<script>
function test() {
$('#test_side').html( '<27><><EFBFBD><EFBFBD> 3' );
$.post('/ajax.php?test=<3D><><EFBFBD><EFBFBD> 6&',{'test_post':'<27><><EFBFBD><EFBFBD>7'},function(data){ $('#test_block').html( data ); });
}
</script>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2<br>
<div id="test_side"></div>
<div id="test_block"></div>
<br><br>
<a href="javascript:test();"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>