How to set SESSION variable from Jquery Trigger?
I have set trigger link like:
<script type="text/javascript">
$(document).ready(function(){
$(".trigger").click(function(){
$(".panel").toggle("slow");
$(this).toggleClass("active");
return false;
});
});
</script>
How to solve this trigger into SESSION (PHP) to manipulate further in the correct way?
How to set SESSION variable from Jquery Trigger?
Moderator: General Moderators
Re: How to set SESSION variable from Jquery Trigger?
Use a $.post() or $.get() call to execute the necessary PHP.
Re: How to set SESSION variable from Jquery Trigger?
Need more help.
$_SESSION["var"] =;
How to set in my example $.post() into $_SESSION["var"]
$_SESSION["var"] =;
How to set in my example $.post() into $_SESSION["var"]
Re: How to set SESSION variable from Jquery Trigger?
What are you trying to set and where is the value coming from?
jQuery.post() is probably worth looking at.
jQuery.post() is probably worth looking at.