Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/06/2011, 18:07
claudio03
 
Fecha de Ingreso: junio-2011
Mensajes: 1
Antigüedad: 13 años, 2 meses
Puntos: 0
Error en imagenes dinamicas

Hola amigos, queria cometarles que he creado un formulario en el cual se coloca unos datos, al terminar eso.Los datos son colocados en una imagen.
El tema es que no me carga la pagina donde deberia aparecer los datos.
Aqui dejos los archivos:

Imagen:PHP

Cita:
<?php
$ancho=100;
$alto=30;
$imagen=imageCreatefrompng("post.PNG");
$amarillo=ImageColorAllocate($imagen,255,255,0);
$titulo = $_POST['titulo'];
$año = $_POST['año'];
$pais = $_POST['pais'];
$genero = $_POST['genero'];
$portada = $_POST['portada'];
$produccion = $_POST['produccion'];
$reparto = $_POST['reparto'];
$director = $_POST['director'];
$sinopsis = $_POST['sinopsis'];
$formato = $_POST['formato'];
$calidad = $_POST['calidad'];
$idioma = $_POST['idioma'];
$peso = $_POST['peso'];

$fuente = 'verdana.ttf';

$portadafinal = imagecreatefromjpeg($portada);

$x = ImagesX($portadafinal);//para el ancho
$y = ImagesY($portadafinal);//para el alto

imagecopyresized ($imagen , $portadafinal, 20, 17, 0, 0, 138, 173, $x, $y);

imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $titulo);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $año);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $pais);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $genero);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $produccion);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $reparto);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $director);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $sinopsis);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $formato);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $calidad);
imagettftext($imagen, 15, 0, 234, 42, $amarillo, $fuente, $idioma);
imagettftext($imagen, 15, 0, 220, 70, $amarillo, $fuente, $peso);

Header ("Content-type: image/png");
ImageJPEG ($imagen);
ImageDestroy($imagen);
?>
Formu: HTML

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formulario</title>
</head>
<form method="post" action="imagen.php">
Titulo del post:
<br>
<input type="text" name="titulo">
<br>
Año
<br>
<input type="text" name="año">
<br>
Pais:
<br>
<input type="text" name="pais">
<br>
Genero
<br>
<input type="text" name="genero">
<br>
Imagen portada del post:
<br>
<input type="text" name="portada">
<br>
Produccion
<br>
<input type="text" name="produccion">
<br>
Reparto
<br>
<input type="text" name="reparto">
<br>
Director
<br>
<input type="text" name="director">
<br>
Sinopsis
<br>
<input type="text" name="sinopsis">
<br>
Formato:
<br>
<input type="text" name="formato">
<br>
Calidad:
<br>
<input type="text" name="calidad">
<br>
Idioma
<br>
<input type="text" name="idioma">
<br>
<input type="submit" value="Generar post!">
</form>
<body>
</body>
</html>
Espero que me puedan ayudar.
saludos!