<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<form action="" method="post" enctype="multipart/form-data" name="form1">
  <table width="100" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td><p>&nbsp;</p>
      <p>&nbsp;      </p>
      <p>&nbsp; </p></td>
    </tr>
  </table>
  <table width="143" border="1" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="91"><p>Subir Foto 
          <input type="file" name="file">
      </p>
      <p align="center">
        <input type="submit" name="Submit" value="Subir Imagen">    
          </p></td>
    </tr>
	<?php 

		$destino = '../fotos'; 
        //echo $_FILES['file']['type']."<br>";
		echo $_FILES['file']['name'];
		//if ($_FILES['file']['type']=='jpg' || $_FILES['file']['type']=='jpeg' ){ 
				copy($_FILES['file']['tmp_name'], $destino.'/'.$_FILES['file']['name']);  
        //}else{echo "La Imagen No es Un Archivo JPG";}
	
	?>
  </table>
</form>
</body>
</html>
