title: How to send localStorage from JS to PHP file (?)
body: <p>I am trying to move localStorage content to a php email file. The localStorage was created with Javascript. The thankyou.php <strong>CAN</strong> use JS/jQuery BUT the email file (admin-new-order.php <strong>CANNOT</strong> use JS or jQuery... </p>
  
  <p>Here is the code I am using. It's not working properly:</p>
  
  <p>JS on <strong>thankyou.php</strong> (<strong>1</strong>st page):</p>
  
  <pre><code>  &lt;script&gt;
        var value = localStorage.totallocal;
  
        jQuery.post(
              "admin-new-order.php", 
              {myKey: value}, 
              function(data){
                 var value = localStorage.totallocal;
              }).fail(function()
                 {
                     alert("error");
              });
         }
    &lt;/script&gt;
  </code></pre>
  
  <p>PHP on <strong>admin-new-order.php</strong> (<strong>2</strong>nd page/sent to email inbox). Retrieves value from <strong>thankyou.php</strong>:</p>
  
  <pre><code>    &lt;p&gt;&lt;?php  $value = $_POST["value"]; printf("%u",$value); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>The email file shows this: 0 but the value from localStorage should always be between 0.01 - 10000.00. I don't think it is receiving the localStorage...but I don't know what I am doing wrong. I am new to php.</p>
  
  <p><strong>Thank you in advance!</strong></p>