title: Pass Javascript Variable to PHP POST
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/133925/javascript-post-request-like-a-form-submit">JavaScript post request like a form submit</a>  </p>
  </blockquote>
  
  
  
  <p>I have a value calculated in JS that I'd like to pass as part of an input form to a PHP script. How can I get a value the JS value to the PHP as a POST parameter?</p>
  
  <p>Basically, on submit, I need the <code>total</code> var to be passed via post to the next script.</p>
  
  <p>The first idea that comes to mind is create an invisible input form that has the value in it and is inputted with the form, is that possible?</p>