Is it possible to send a value of a variable from a js file to a php file
<p>I have script and I'd like to know if it's possible the send the value of a variable to $_session,</p>

<pre><code> &lt;script&gt;

$(function() {

    var delivery = 0;
    $('#jcart-paypal-checkout').click(function() { 
     delivery = $('form#delivery2 input[type=radio]:checked').val();
     if(!delivery) {
      alert('Please choose a delivery option');
      return false;
     }else {
      &lt;?php $_SESSION['shipping'] = ?&gt; delivery;
     }


    });

});
&lt;/script&gt;
</code></pre>

<p>I need to send the value of delivery in $_session['shipping'],</p>

<p>thanks</p>
