Well... look at: [man]mysql_connect/man
[man]mysql_query/man
[man]mysql_result/man or [man]mysql_fetch_array/man
Then, just create the form as you would in HTML using [man]echo/man
And of course, use the "value" tags in the form elements to autopopulate the fields.
A simple example would be (not using your information):
<?php
$conn = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
mysql_select_db('database', $conn);
$query = "SELECT name, email
FROM users
WHERE email='".mysql_real_escape_string($_SESSION['email'])."'
AND firstname='".mysql_real_escape_string($_SESSION['email'])."'
LIMIT 1";
$result = mysql_query($query);
$name = mysql_result($result, 0, 1);
$email = mysql_result($result, 0, 2);
?>
<form action="" method="POST">
<input type="hidden" name="name" value="<?php echo $name; ?>">
<input type="hidden" name="email" value="<?php echo $email; ?>">
<input type="submit" value="Submit!">
</form>
~Brett