Как прокомментировал @RamRaider .. вы делаете два запроса к sheet.php
.Первый - это «тихий» POST-запрос, а второй - запрос GET после успешного завершения первого POST-запроса.
![Request count](https://i.stack.imgur.com/uJIBh.png)
Второй выигранный запросНе делитесь полезными данными первого.
Если я правильно понимаю, приведенный ниже код должен делать то, что вы хотите ...
// Create a form element
// <form action="sheet.php" method="post"></form>
var tempForm = document.createElement('form');
tempForm.setAttribute('action', 'sheet.php');
tempForm.setAttribute('method', 'POST');
tempForm.setAttribute('target', '_blank'); // Open in new tab
// Create an input field
// <input name="mnu" value="...">
var tempInput = document.createElement('input');
tempInput.setAttribute('name', 'mnu');
tempInput.setAttribute('value', JSON.stringify(student)); // Set field value
// Add the input to the form
tempForm.appendChild(tempInput);
// Add the form to the body in order to post
document.body.appendChild(tempForm);
// Submit the form
tempForm.submit();
// Remove the form
document.body.removeChild(tempForm);
И если вы используете jQuery, вы можетеупростить приведенный выше код ..
$('<form>', {
action: 'sheet.php',
method: 'POST',
target: '_blank',
html: $('<input>', {
name: 'mnu',
value: JSON.stringify(student)
}).prop('outerHTML')
}).appendTo($('body')).submit().remove();