Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/02/2012, 18:16
zet2003
 
Fecha de Ingreso: febrero-2012
Mensajes: 13
Antigüedad: 12 años, 2 meses
Puntos: 0
Exclamación Respuesta: Problema para subir formulario con imagenes

Te muestro el formulario anterior

Código:
<html lang="es">
<head>
    <title>Formulario de actualizar</title>
</head>
<body>
<h1>Selección de cliente</h1>
<?
include ("conector.php");

$id = $_GET["id"];

$ssql = "select * from prensa where id_prensa=" .$id;
$cliente_editar = mysql_query($ssql);
//Tengo que mirar si hay resultados
if(mysql_num_rows($cliente_editar)>0){
//consigo los datos
$fila =  mysql_fetch_object($cliente_editar);

//Creo formulario de datos
?>
<form action="update-cliente-id2.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $id; ?>">
Titulo:
<br>
<input  type="text" name="titulo" value="<?php echo $fila ->titulo;?>">
<br>
<br>
Descripcion
<br>
<textarea  cols="40" rows="10" name="descripcion" value="<?php echo $fila ->descripcion;?>">
<?php echo $fila ->descripcion;?>
</textarea>
<br>
Fecha
<input  type="text" name="fecha" value="<?php echo $fila ->fecha;?>">
<br>
<br>
<br>
<input  type="file" name="imagen" value="<?php echo $fila ->imagen;?>">
<input type="submit" value="Cambiar">
</form>
<?php
}else{
    echo "No se encontro ningún cliente";
}
?>
<a href="update-con-seleccion-de-cliente.php">Volver</a>
<?php
mysql_close($conexion);
?>
</body>
</html>
Y lo del tema de que no me permita seleccionar png ni gif aunque lo haya declarado en la variable $ext?

Un saludo y gracias.