Hello, I'm doing an upload system, but when I submit in the following code both exchange the value of the ID variable.
My idea is to change the value of the ID so that the folder that will be uploaded changes, as can be seen in the 1st echo, while in the 2nd echo it shows the upload button itself.
I want only the 1st echo to change the value of the ID when I use submit.
echo "<form action='' method='POST' enctype='multipart/form-data'>
<input type='text' name='ID' id='ID' placeholder='INSIRA O ID'>
<input type='submit' value='confirmar' id='ID'>";
$ID = $_POST['ID'];
echo "<form action='' method='POST' enctype='multipart/form-data'>
<input type='file' name='allfiles' />
<input type='submit'/>
</form>";