Passing a image size variable using Javascript to a PHP page
<h2>I am trying to send a canvas drawing to the server using javscript.</h2>

<p>Having a function such as :</p>

<pre><code>function uploadPic() {              
    var imgData = document.getElementById("myCanvas").toDataURL();
    window.location = "myPHPfile.php?imageData=" + imgData;
}
</code></pre>

<p>What would the best way to pass the <strong>imgData</strong> variable to the php page due to its large size. 
Thanks in advance!</p>
