コード例 #1
0
	switch ($ls_operacion) 
	{
		case "GUARDAR":
			
			$lb_valido=true;
			$ls_nomfot="";	
			$ls_nomfot=$HTTP_POST_FILES['txtfotper']['name'];
			$ls_cedper=$_POST["txtcedper"];
			if ($ls_nomfot!="")
			{
				$ls_nomfot=$ls_cedper.substr($ls_nomfot,strrpos($ls_nomfot,"."));
			}
			$ls_tipfot=$HTTP_POST_FILES['txtfotper']['type']; 
			$ls_tamfot=$HTTP_POST_FILES['txtfotper']['size']; 
			$ls_nomtemfot=$HTTP_POST_FILES['txtfotper']['tmp_name'];
			$ls_nomfot=$io_personal->uf_upload($ls_nomfot,$ls_tipfot,$ls_tamfot,$ls_nomtemfot);
			
			
	}
			
?>
<form action="" method="post" enctype="multipart/form-data" name="form1">
  <p align="center">
       
</p>
  <input name="operacion" type="hidden" id="operacion">
  <input name="txtcedper" type="hidden" id="txtceper" value="<?php print $ls_cedper?>">
  <table width="500" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="496" colspan="2" class="titulo-celda">Carga de Foto</td>
    </tr>