I've written these 2 simple php code, to test php with jQuery:
FILE aaa.php
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<form action="bbb.php" method="POST">
<p>Il tuo Nome: <input type="text" name="name" value="" /></p>
<p>La tua et: <input type="text" name="age" value ="" /></p>
<p><input type="submit"></p>
</form>
</body>
</html>
FILE bbb.php
Ciao <?php echo htmlspecialchars($_POST['name']); ?>.
La tua eta e di <?php echo (int)$_POST['age']; ?> anni.
But it doesn't work, because I don't receive any variable on bbb.php.
Could someone explain why?