<?php
require'conecta.php';
$id = 0;
if (isset($GET['id']) && !empty($GET['id'])){
$id = addslashes($GET['id']);
$sql = "SELECT * FROM usuarios WHERE id = '$id'";
$sql = $pdo->query($sql);
if ($sql->rowCount()<0) {
$dado = $sql->fetch();
}
}
?>
<form method="POST">
Nome:</br>
<input type="text" name="nome" value="<?php echo $dado['nome']; ?>"></br>
E-mail:</br>
<input type="text" name="email" value="<?php echo $dado['email']; ?>"></br>
Senha</br>
<input type="password" name="senha"></br>
<input type="submit" value="Atualizar">
</form>