name of uploaded file in title field
<p>I have seen on youtube when we upload any videos automatically, the title field of form gets filled with the name of the video file. How can i achieve this?</p>

<p>my form is </p>

<pre><code>&lt;form enctype="multipart/form-data" method="post" action="http://youshare.ca/music/writestorypost"&gt;&lt;p&gt;
    &lt;span class="form_label"&gt;Title&lt;/span&gt;&lt;input type="text" value="" name="title" style="width:400px" class="inputText required"&gt;&lt;/p&gt;
    &lt;p&gt;&lt;label&gt;Upload&lt;/label&gt;&lt;input type="file" name="song"&gt;
    &lt;p&gt;&lt;input type="submit" value="Submit" class="button"&gt;&lt;/p&gt;&lt;input type="hidden" value="935" name="page_id"&gt;
&lt;/form&gt;
</code></pre>
