title: PHP - How to send data to remote form
body: <p>I need to send POST data to the remote form. I have a simple script...</p>
  
  <pre><code>$data['field1'] = '1';
  $data['field2'] = '2';
  $data['field3'] = '3';  
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "https://www.example.com/my-form.php?authToken=poWQyj2q");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  
  $output = curl_exec($ch);
  $info = curl_getinfo($ch);
  
  curl_close($ch);
  
  echo $output; 
  </code></pre>
  
  <p>... It would be work nice, but there is a problem with form URL - How you can see, there is some "authToken" value which changes each time a page is loaded. When it is incorrect, the form is sent, but not processed.</p>
  
  <p>Any ideas how to solve it? Thanks.</p>