Can someone point out what I'm doing wrong, I'm trying to make a php call when changing the selected value.
The code does not reflect information from the php file.
REDUCTION CODE
// Skill sort on change $('#order_by').on('change', function() { $.ajax({ type: "POST", url: "sort_skill_be.php", data: {skill:this.value} }).done(function(result){ console.log(result) }) });
PHP code
<?php session_start(); $skill_sort = $_POST['skill']; echo $skill_sort; echo 'I got in here'; ?>
Thanks for the help and time!
EDIT: it is working right now, thanks for the help!
source share