pbm with posting ajax data in php7

Clash Royale CLAN TAG#URR8PPPpbm with posting ajax data in php7
I have a problem with the POST data on a page, it works under chrome and mozilla but on IE11 exceptionally it does not work. the fact is simple, a form in html poster with an ajax function with jquery1.6 does not work if we do a var_dump () php side of global variable $ _POST send via ajax the variable is null (the version of php is php7. 1.18), yet on a php5.3 server (old server it works properly).
Blockquote
<?php
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-FR" lang="fr-FR">
<head>
<script src="https://code.jquery.com/jquery-1.6.2.js" ></script>
</head>
<body>
<form id="form_ses10_rech" name="form_ses10_rech" action="index.phpp......." method="post">
<input type="text" name="nom" value="">
<input type="text" name="prenom" value="">
<input type="submit" name="subm" value="Envoyer">
</form>
<script>
$(document).ready(function(){
$('#form_ses10_rech').submit(function(e){
// e.preventDefault();
$.ajax({
url: 'test.php',
type: 'POST',
data: jQuery('#form_ses10_rech').serialize(),
success: function (data) {
console.log(data);
},
error: function (error) {
console.log(error);
}
});
});
});
</script>
</body>
</html>
Blockquote
Do you know the problem ?
Thanks
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.