JQuery,Passing Form POST/FILES data to PHP
<p>I have simple Image ulpoad HTML Form, The Idea is, I'm passing my Data to PHP script Via JQuery, Anyway, My script is not passing $_FILES Data
Code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        $(document).ready(function(){
            $('#addpic').live('submit', function(e) {
                e.preventDefault();
                $.post('add.php', $(this).serialize(), function (data, textStatus) {
                    if (data == "true") { //Upload successful
                        $('#submitf').hide();
                        $('#backf').hide();

                        var thank="&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;h3&gt;Teşekkürler,&lt;br&gt;fotoğraf kontrol edildikten sonra aktif hale gelecektir.&lt;/h3&gt;&lt;/center&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;";
                        $('#signupdiv').html(thank);
                    }
                    else if (data == "err") {

                    }
                     else {
                        alert(data);
                    }
                });
                return false;
            });
        });
&lt;/script&gt;
</code></pre>

<p>and For Sure my Form is </p>

<pre><code>&lt;form method="POST" action="" name="addpic" id="addpic" onsubmit="return checkform(this);"  enctype="multipart/form-data"&gt;
</code></pre>

<p>and PHP is simple no problem in there.</p>
