<?php
require 'conexion.php';
?>
<body>
<form action="guarda_cliente.php?id=<?php echo isset($_REQUEST['id']);?>" name="frmEdit" method="post">
<?php
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : "0";
$strSQL = "Select id_usuario as Id,user_usuario as User,pass_Usuario as Pass, email_usuario as Email from usuarios WHERE id_usuario= '".$id."'";
$objQuery = mysqli_query($mysqli , $strSQL);
$objResult =mysqli_fetch_array($objQuery);
if(!$objResult)
{
echo "Clave no encontrado=".isset($_REQUEST['id']);
}
else
{
?>
<table width="50%" class="Tablas" align="center">
<tr>
<td align="center" colspan="2" width="50%" class="styleEtiquetas_Negras">
<a href='veintetres_practica.php'>Add</a> |
<a href='dieciocho_practica.php'>Display</a>
</td>
</tr>
<tr>
<td align="left" width="50%" class="styleEtiquetas_Negras">
Id
</td>
<td align="left" width="50%" >
<input type="text" name="txtID" size="5" value="<?php echo $objResult["Id"];?>">
</td>
</tr>
<tr>
<td align="left" width="50%" class="styleEtiquetas_Negras">
User
</td>
<td align="left" width="50%" >
<input type="text" name="txtUser" size="20" value="<?php echo $objResult["User"];?>">
</td>
</tr>
<tr>
<td align="left" width="50%" class="styleEtiquetas_Negras">
Pass
</td>
<td align="left" width="50%" >
<input type="text" name="txtPass" size="20" value="<?php echo $objResult["Pass"];?>">
</td>
</tr>
<tr>
<td align="left" width="50%" class="styleEtiquetas_Negras">
Email
</td>
<td align="left" width="50%" >
<input type="text" name="txtEmail" size="20" value="<?php echo $objResult["Email"];?>">
</td>
</tr>
<tr>
<td align="right" colspan="2" width="50%" class="styleEtiquetas_Negras">
<input type="submit" name="submit" value="Editar">
</td>
</tr>
</table>
<?php
}
?>
</form>