File: /home/asjudine/public_html/escoger_archivos.php
<?PHP
define(UPLOAD_NO, 10);
if($REQUEST_METHOD!=POST)
{
print '<form enctype=multipart/form-data method=POST>';
print '<INPUT TYPE=hidden name=MAX_FILE_SIZE value=10000000>';
for($i=1; $i<=UPLOAD_NO; $i++)
{
echo '<input type=file name=archivito';echo$i;echo'>';
if($i%2==0)
print'<br>';
}
}
?>
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
</head>
<body>
<form enctype="multipart/form-data" action="guardar_archivos.php" method="post">
<table width="518" border="0" align="center" cellpadding="3" cellspacing="3">
<tr bgcolor="#0099FF">
<th colspan="2" scope="row">FORMULARIO PARA SUBIR EL ARCHIVO A ENVIAR </th>
</tr>
<tr bgcolor="#FFFFCC">
<th colspan="2" scope="row"><div align="right"></div></th>
</tr>
<tr bgcolor="#FFFFCC">
<th scope="row"><div align="right"><span class="Estilo1">IDENTIFICACION DEL AFILIADO : </span></div></th>
<td><input name="identificacion" type="text" id="identificacion" size="15" maxlength="15" readonly="" value="<?php echo $cedula; ?>"></td>
</tr>
<tr bgcolor="#FFFFCC">
<th width="248" scope="row"><div align="right"><span class="Estilo1">UBICACION DEL ARCHIVO : </span></div></th>
<td width="249"><input type="file" name="archivito"></td>
</tr>
<tr bgcolor="#FFFFCC">
<th colspan="2" scope="row"><input name="submit" type="submit" value="Enviar archivo"></th>
</tr>
</table>
</form>
</body>
</html>