myFile.php:
<?php $something = 'text'; ?><script>$.ajax({ url: "page.php", type: "post", dataType: "html", data: '<?php echo $something; ?>', success: function (data) { $('#total').load('xxx.php'); }});</script>
myFile.php:
<?php $something = 'text'; ?><script>$.ajax({ url: "page.php", type: "post", dataType: "html", data: '<?php echo $something; ?>', success: function (data) { $('#total').load('xxx.php'); }});</script>