$nom_usuario = $_POST["usuario"]; /* para verificar si se ha ingresado algun otro valor */ if (strcmp($_POST["id_telefono"], 'otro') == 0) { $telefonos->nuevo($_POST["otro_telefono"], $id_persona_env); } else { $id_telefono = $_POST["id_telefono"]; $telefonos->hacer_predeterminado($id_telefono, $id_persona_env); } if (strcmp($_POST["id_correo"], 'otro') == 0) { $correos->nuevo($_POST["otro_correo"], $id_persona_env); } else { $correos->hacer_predeterminado($_POST["id_correo"], $id_persona_env); } /* ---------------------------------------------------- */ if (strcmp($_POST["id_universidad"], 'otro') == 0) { $id_universidad = $universidades->nuevo($_POST["otro_universidad"]); } else { $id_universidad = $_POST["id_universidad"]; } if (strcmp($_POST["id_especialidad"], 'otro') == 0) { $id_especialidad = $especialidades->nuevo($_POST["otro_especialidad"]); } else { $id_especialidad = $_POST["id_especialidad"]; } if (strcmp($_POST["id_facultad"], 'otro') == 0) { $id_facultad = $facultades->nuevo($_POST["otro_facultad"]); } else { $id_facultad = $_POST["id_facultad"]; } if ($_FILES["foto_perfil"]["name"] != "") { $foto_perfil = $_FILES["foto_perfil"];