Well done.
Now to fill the form, for each input field you have to set the value param.
First, when you load edit.php make a query to retrieve the value.
The in the form form each <input> tag write <input name="myfield" value="<?=$row("myfield")?>">
this will fill the input field.
For TEXTAREA you have to put the value in tag, like this:
<textarea name="myfield"><?=$row("myfield")?></textarea>