PHP - como puedo editar un link en registro

 
Vista:

como puedo editar un link en registro

Publicado por sergio (1 intervención) el 28/11/2006 17:10:26
Hola tengo este script con el que quiero modificar un registro ingresado

<tr><td><font color="#FFFFFF" size="1"><strong>HTM:</strong></font></td></tr>
<tr>
<td>
<input type="textfield" name="htm" value="'.$row[htm].'" style="font-family: Arial; font-size: 10pt; border-style: solid; border-width: 1"></td>
</tr>

quiero que en el campo htm me muetre dentro del mismo todo el link para modificarlo, es decir quiero ver en el campo esto:<a href="http://www.miweb.com/at_hoteles/iguana.htm?"target="_blank">ver fotos</a>

este es el script completo:

<?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);
?>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder