Second input not working with post method php

I have two input on my html page.I want to process both input with post method.The second input never reach my php script called upload.php it always fall in valid.php which is the first php script processing the first input.

First input

<form method="POST" action="valid.php">
<td style="color:#0a3448;font-size:11px;font-weight:bold;">Your ID :</td>
    <td width="50%"><input type="text" name="id" size="" style="width: 180px"></td>
</tr>
<br>
<td style="color:#0a3448;font-size:11px;font-weight:bold;">ID confirmation : </td>
<td width="0%"><input type="text" name="idconf" size="" style="width: 180px">
<div class="block" id="thoughtbot">
<button>Validate</button> 

Second input

<form action="upload.php" method="post" enctype="multipart/form-data">
  Select image to upload:
  <input type="file" name="fileToUpload" id="fileToUpload">

  <input type="submit" value="Upload Image" name="submit">
</form>

How can i make the second input working ?