Foros del Web » Programando para Internet » PHP »

Ayuda con row$htm

Estas en el tema de Ayuda con row$htm en el foro de PHP en Foros del Web. Tengo este script para editar un registro que me funciona perfecto, salvo el campo htm en el cual ingreso un registro asi: <a href="http://www.affinity-commerce.com/at_hoteles/iguazu.htm?"target="_blank">ver fotos</a> ...
  #1 (permalink)  
Antiguo 29/11/2006, 09:20
 
Fecha de Ingreso: mayo-2004
Mensajes: 903
Antigüedad: 20 años
Puntos: 4
Ayuda con row$htm

Tengo este script para editar un registro que me funciona perfecto, salvo el campo htm en el cual ingreso un registro asi: <a href="http://www.affinity-commerce.com/at_hoteles/iguazu.htm?"target="_blank">ver fotos</a>
Pues bien insertar y borrar todo bien, pero al querer editarlo no me lo muestra dentro del campo sino fuera.

El script es el siguiente:

<?php
//recibimos la variable id enviada en el enlace por GET
$id=$_GET[id];
//hacemos las consultas
$result=mysql_query("select * from paquetes where id_web='$id'"
,$connect);
//Una vez seleccionados los registros los mostramos para su edición
echo '<table width="500" border="0" cellpadding="0" cellspacing="0" >';
while($row=mysql_fetch_array($result)){
echo '<form action="edit.php" method="post"><input type="hidden" name="id" value="'
.$row[id_web].'">
<tr height="24" >
<td><font color="#FFFFFF"><strong>WEB</strong></font></td>
</tr>
<tr>
<td>
<input type="text" size="15" name="web" value="'.$row[web].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>
<tr bgcolor="#983977" height="24">

<td><font color="#FFFFFF"><strong>PROVINCIA</strong></font></td>
<td><font color="#FFFFFF"><strong>CIUDAD</strong></font></td>
<td><font color="#FFFFFF"><strong>PAIS</strong></font></td>
</tr>
<tr>

<td>
<input type="text" size="15" name="provincia" value="'.$row[provincia].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="ciudad" value="'.$row[ciudad].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="pais" value="'.$row[pais].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>
<tr bgcolor="#983977" height="24">
<td height="25" ><font color="#FFFFFF"><strong>HOTEL</strong></font></td>
<td ><font color="#FFFFFF"><strong>ESTRELLAS:</strong></font></td>
<td ><font color="#FFFFFF"><strong>VIGENCIA:</strong></font></td>
</tr>
<tr>
<td>
<input type="text" size="15" name="hotel" value="'.$row[hotel].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="estrellas" value="'.$row[estrellas].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="vigencia" value="'.$row[vigencia].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>
<tr bgcolor="#983977" height="24">
<td><font color="#FFFFFF"><strong>SGL: </strong></font></td>
<td><font color="#FFFFFF"><strong>DBL </strong></font></td>
<td><font color="#FFFFFF"><strong>TPL: </strong></font></td>
</tr>
<tr bgcolor="#983977" >
<td>
<input type="text" size="15" name="sgl" value="'.$row[sgl].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="dbl" value="'.$row[dbl].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="tpl" value="'.$row[tpl].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>
<tr bgcolor="#983977" height="24">
<td><font color="#FFFFFF" size="1"><strong>SUITE:</strong></font></td>
<td><font color="#FFFFFF"><strong>CAMA: </strong></font></td>
<td><font color="#FFFFFF"><strong>ADICIONAL: </strong></font></td>
</tr>
<tr>
<td>
<input type="text" size="15" name="suite" value="'.$row[suite].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="cama" value="'.$row[cama].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
<td>
<input type="text" size="15" name="adicional" value="'.$row[adicional].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td> </tr>
<tr><td><font color="#FFFFFF" size="1"><strong>HTM:</strong></font></td></tr>
<tr>
<td>
<input type="text" size="150" name="htm" value="'.$row[htm].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>
</table>

<tr align="right"><td height="40">
<p align="center">
<input type="submit" value="Editar" style="font-family: Arial; font-size: 8pt; font-weight: bold"></td> </tr>
</form>';
}
mysql_free_result($result);
mysql_close($connect);
?>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:24.