Jump to content

Crear Generador [PHP] [Consulta]


Recommended Posts

Hola hace algunos días he estado en la idea de crear un generador que tu coloques cierta información y luego te la muestre en otra pagina con los datos que ingrese ejemplo:

Link a la Imagen : "Escribe tu link aqui "

Y luego en la siguiente pagina te muestre algo asi :


SS 1 : [img= LINK ]  ( para que se vea tu foto)

 

He buscado pero no e encontrado nada

 

Si alguien sabe me seria de ayuda.

 

Saludos.

Edited by streick
Link to comment
Share on other sites

prueba con esto:

 

<?php

if(isset($_POST['enter']) && !empty($_POST['img']))
{
$img = $_POST['img'];
echo '<img alt="La img no se puede mostrar" src="'.$img.'"/>';
}
else
{
echo '<form method="post" action="'.$_SEVER['SELF_PHP'].'">Introduzca la url de la imagen <input type="text" name="img"/><br/><input type="submit" name="enter" value="Enviar"></form>
}
?>

 

Eso si esto es un ejemplo tu lo tienes que adecuar a tus necesidades

Edited by alvaroxz
Link to comment
Share on other sites

es asi: (hable cn el por mp)

el html

<!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" xmlns:ice="http://ns.adobe.com/incontextediting">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="caca.php">
<table width="370" height="95" border="0">
  <tr>
    <td width="144" height="33">LINK IMAGEN:</td>
    <td width="216">http://<input type="text" name="imagen" /></td>
  </tr>
  <tr>
    <td height="56" colspan="2" align="center">
      <label>
        <input type="submit" name="button" id="button" value="Enviar" />
      </label>    </td>
  </tr>
</table>
</form>
</body>
</html>

 

el php

<?php
$imagen = $_POST['imagen'];
echo "[IMG=http://$imagen"; echo "]";
?>

Link to comment
Share on other sites

  tomy321 said:

es asi: (hable cn el por mp)

el html

<!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" xmlns:ice="http://ns.adobe.com/incontextediting">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="caca.php">
<table width="370" height="95" border="0">
  <tr>
    <td width="144" height="33">LINK IMAGEN:</td>
    <td width="216">http://<input type="text" name="imagen" /></td>
  </tr>
  <tr>
    <td height="56" colspan="2" align="center">
      <label>
        <input type="submit" name="button" id="button" value="Enviar" />
      </label>    </td>
  </tr>
</table>
</form>
</body>
</html>

 

el php

<?php
$imagen = $_POST['imagen'];
echo "[IMG=http://$imagen"; echo "]";
?>

 

 

ajajaja para que ocupas dreamweaver para explicar algo tan sencillo la idea es ayudar no hacerle la pag al compare

Link to comment
Share on other sites

  alvaroxz said:

ajajaja para que ocupas dreamweaver para explicar algo tan sencillo la idea es ayudar no hacerle la pag al compare

 

q tiene si uso dreamweaver o textmate o tu block de notas da lo mismo.

al hacerle la pagina lo estas ayudando a resolver su problema, te contradices. :ROLF:

 

lo sencillo aca es el php, 4 lineas lol, el html da lo mismo, el lo sabe html.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...