What part do you need help with?
You construct an UPDATE query, a string, by placing the form data in the query. Then execute that query.
$sql = "UPDATE people SET name = '" . mysql_real_escape_string($_POST['name']) . "' WHERE id = " . (int)$_POST['id'];
You should ask this question in the forum for the language you're using if you need specific help.