title: how to send form value with "onClick="window.location.href "
body: <p>i need to stay on the same page so i'm not using submit button. How can i go to php page and send form values?
  exempel:</p>
  
  <pre><code> &lt;form action="" method="post" enctype="multipart/form-data"&gt;
   &lt;label for="file"&gt;Filename:&lt;/label&gt; &lt;input type="file" name="csv" id="csv"/&gt;
   &lt;input type= "button" value="immport" onClick = "window.location.href =readFile.php'
   .(this.form);" &gt; 
   &lt;/form&gt;
  </code></pre>
  
  <p>this doesn't work. other options?</p>