title: Automatically pass data from JavaScript to PHP
body: <p>My program consists of two parts:</p>
  
  <p>1)run.php generates and shares token via JS which is needed for my php functions. </p>
  
  <pre><code>$('.setURL').attr('href', 'save.php?token='+text);
  &lt;a class="setURL"&gt;&lt;button&gt;Save Settings&lt;/button&gt;&lt;/a&gt;
  </code></pre>
  
  <p>2)code2.php receives token from code.php via $_GET and launches the functions.</p>
  
  <pre><code>$token = $_GET['token'];
  </code></pre>
  
  <p>For scaling i need to launch this process automatically through cron and looking for a way to share token from run.php to save.php automatically without submitting forms or clicking buttons.</p>
  
  <p>Honestly i tried to investigate but didn't find a way or clues of how to do it.</p>