Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/09/2010, 14:47
Avatar de rickyper
rickyper
 
Fecha de Ingreso: abril-2009
Mensajes: 182
Antigüedad: 15 años
Puntos: 10
Respuesta: Cambiar ruta de imagen por dicha imagen

El quiere algo como esto... Bueno eso creo, espero sea de ayuda:
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Titulo</title>
  5. </head>
  6.  
  7. <body><form id="form1" name="form1" method="post" action="recibe.php">
  8.   Imagen:
  9.    <input type="text" name="imagen" />
  10.   <input type="submit" name="Submit" value="Enviar" />
  11. </form>
  12. </body>
  13. </html>
recibe.php
Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8. <body>
  9. <? if (isset($_POST['imagen']))
  10. {
  11. $imagen=$_POST['imagen'];
  12. echo "<img src='$imagen' width='259' height='32' />";
  13. }
  14. else
  15. {
  16. echo "no hay imagen para mostrar";
  17. }
  18. ?>
  19. </body>
  20. </html>
__________________
www.granideamillonaria.com