It seems to be doing everything right, but when I press the button, nothing happens. POST reception is worth it, but it makes no sense to write.
<script type="text/javascript"> function send() { var be = $('#be').val(); var pe = $('#pe').val(); $.ajax({ type: "POST", url: "/?page=send", data: "be="+be+"&pe="+pe, } }); } </script> <form action=""> <input id="be" type="text" name="be"> <input id="pe" type="hidden" name="pe" value="1"> </form> <input type="button" onclick="send();" value="Отправить" />