How to upload an image with two different names in input tag with PHP? And resize them
<p>To upload the image I tried the single image upload code twice but it is not properly uploading both the images. The first one is uploaded and the second one is not.
Here is the code for the Form i used:</p>

<pre><code>&lt;form action="" method="post" enctype="multipart/form-data"&gt;
&lt;table&gt;
&lt;tr&gt;&lt;td&gt;Title&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="title" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Date&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="date" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Thumbnail&lt;/td&gt;&lt;td&gt;&lt;input type="file" name="thumb" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Image&lt;/td&gt;&lt;td&gt;&lt;input type="file" name="image" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Details&lt;/td&gt;&lt;td&gt;&lt;textarea name="details"&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;input type="submit" name="Submit" value="Submit" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;
</code></pre>
