Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/04/2010, 21:09
churretin
 
Fecha de Ingreso: abril-2010
Ubicación: Extremadura
Mensajes: 128
Antigüedad: 14 años
Puntos: 2
Respuesta: mostrar una variable php en un campo de texto para editarla

es un simple formulario, los imput tan puestos de varias maneras pero ninguna me funciono, digame si necesita algo mas


<form id="form_emp" name="form_emp" method="post" action="resuledit.php">
<table width="50%" border="1" align="center">
<tr>
<td><table width="100%" border="1">
<tr>
<td>1.Nombre de tu empresa</td>
</tr>
<tr>
<td><label>
<input type='text' name='nombre' id='nombre' value= "<?php echo $c_nom; ?>" />
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td>2.Datos de acceso</td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td width="40%">Identificador:</td>
<td width="60%"><label>
<input type='text' name='usuario' id='usuario' value= "<?php echo($c_user);?>" />
</label></td>
</tr>
<tr>
<td>Contraseña:</td>
<td><label>
<input type='text' name='password' id='password' value= "<?php echo($c_pass);?>" />
</label></td>
</tr>
<tr>
<td>Confirmar contraseña:</td>
<td><label>
<input type='text' name='repassword' id='repassword' value= "<?php echo($c_repass);?>" />
</label></td>
</tr>
</table></td>
</tr>

</table></td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td>3.Describe tu empresa</td>
</tr>
<tr>
<td><label>

<textarea name="desc_emp" cols="70" rows="5" id="desc_emp"><?php echo $row["desc"] ?> </textarea>
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td colspan="2">4. Direccion</td>
</tr>
<tr>
<td>Codigo Postal:</td>
<td><label>
<?php echo "<input type='text' name='codigop' id='codigop' value='".$row["cp"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Poblacion:</td>
<td><label>
<?php echo "<input type='text' name='poblacion' id='poblacion' value='".$row["pob"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Direccion</td>
<td><label>
<?php echo "<input type='text' name='direccion' id='direccion' value='".$row["dir"]."' />"; ?>
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td colspan="2">Datos de contacto</td>
</tr>
<tr>
<td>Persona de contacto:</td>
<td><label>
<?php echo "<input type='text' name='contacto' id='contacto' value='".$row["percont"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>E-mail:</td>
<td><label>
<?php echo "<input type='text' name='mail' id='mail' value='".$row["mail"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Telefono</td>
<td><label>
<?php echo "<input type='text' name='telefono' id='telefono' value='".$row["tel"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Telefono movil</td>
<td><label>
<?php echo "<input type='text' name='telmovil' id='telmovil' value='".$row["telm"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Fax</td>
<td><label>
<?php echo "<input type='text' name='fax' id='fax' value='".$row["fax"]."' />"; ?>
</label></td>
</tr>
<tr>
<td>Pagina web</td>
<td><label>
<?php echo "<input type='text' name='web' id='web' value='".$row["pweb"]."' />"; ?>
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="1">
<tr>
<td>Sector de Actividad</td>
</tr>
<tr>
<td><label></label>
<label>Señale nuevo Sector
<select name="desplegable" id="desplegable">
<option value="nocambia">seleccione</option>
<option value="s1">s1</option>
<option value="s2">s2</option>
<option value="s3">s3</option>
<option value="s4">s4</option>
<option value="s5">s5</option>
</select>
</label></td>
</tr>

</table></td>
</tr>
<tr>
<td>
<?php echo "<input type='hidden' name='id' value='".$id_oculta."' />"; ?>
<input type="submit" name="Enviar" id="Enviar" value="Enviar" />
<input type="reset" name="borrar" id="borrar" value="Borrar" />
</td>
</tr>
</table>
</form>