I try to use this jQuery code to call for Changes.php with $_POST[“fname”] = Jones:
<script>
$(document).ready(function(e) {
var $x = 'Jones';
$.post("Changes.php", { fname: $X } );
});
</script>
But it doesn’t work!
What I am doing wrong? If I put $X in ” – fname becomes $X, not Jones.
Thank you!
Variable names are case sensitive in JS, use a lowercase
x: