alright so here is my problem i have got a jquery function and a php script
jquery function:
function set_session(para){
//Send Ajax request
var dataString = 'waarde='+ para ;
jQuery.ajax({
url: '../js/set_session_side.php',
type: 'POST',
data: dataString,
cache: false,
success: function(data, textStatus, xhr) {
console.log(data); // do with data e.g success message
},
error: function(xhr, textStatus, errorThrown) {
console.log(textStatus.reponseText);
}
});}
set_session.php:
<?php
$_SESSION['side'] = $_POST['waarde'];
?>
when i run the jquery function there is a succes, but no data, and my php script is not working/ or not being triggerd, because $_SESSION['side'] is not changing.
any help would be appriciated. thanks in advance
$_POST['waarde']?