En una pagina estoy recogiendo datos en un campo 'Text' y quiero guardarlo en la base de datos cuando se pulse un icono.
Lo he resuelto creando un hipervinculo a una pagina php que guarda dichos datos.
echo '<td style="width: 426px;">
<font size="+2">
<input name="DES" value="'.$_GET["DES"].'">
</font></td>';
echo '<td style="width: 87px;"> <font size="+2">
<input name="TLF" value="'.$_GET["TLF"].'">
</font></td>';
echo '<td style="width: 95px;">
<input name="POBLACION" value="'.$_GET["POBLACION"].'">
</font></td>';
echo '<td>
<a href="actualizar.php?
ID='.$_GET["ID"].'&DES='.$_GET["DES"].'&
TLF='.$_GET["TLF"].'&POBLACION='.$_GET["POBLACION"].'">
<img style="width: 52px; height: 52px;" alt=""
src="stuff/guardar.jpg"></td>';
Necesito que las variables que he marcado en rojo sean los valores de los controles DES,TLF y POBLACION declarados en las líneas anteriores.
Lo he resuelto creando un hipervinculo a una pagina php que guarda dichos datos.
echo '<td style="width: 426px;">
<font size="+2">
<input name="DES" value="'.$_GET["DES"].'">
</font></td>';
echo '<td style="width: 87px;"> <font size="+2">
<input name="TLF" value="'.$_GET["TLF"].'">
</font></td>';
echo '<td style="width: 95px;">
<input name="POBLACION" value="'.$_GET["POBLACION"].'">
</font></td>';
echo '<td>
<a href="actualizar.php?
ID='.$_GET["ID"].'&DES='.$_GET["DES"].'&
TLF='.$_GET["TLF"].'&POBLACION='.$_GET["POBLACION"].'">
<img style="width: 52px; height: 52px;" alt=""
src="stuff/guardar.jpg"></td>';
Necesito que las variables que he marcado en rojo sean los valores de los controles DES,TLF y POBLACION declarados en las líneas anteriores.