<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="jquery-2.1.1.min.js" type="text/javascript"></script>
<title></title>
</head>
<body>
<div id="Main">
<script>
$('#Main').load('text.txt');
$.post('run.php','value=5');
</script>
</div>
</body>
</html>
'run.php' code
<?php
print_r($_POST);
echo $_POST['value'];
?>
text.txt loads but there is no value being posted in run.php and the variable is undefined also could someone post a working code of the above as an example