Whay do 2 SELECT's ?
how about.....
<?php
if($submit)
{
mail("$client","$job_title position","$message","from: $email");
print ("Thank you for applying for the job");
}
else
{
mysql_query(SELECT * FROM $dbtable WHERE ID = '$ID');
while($row = mysql_fetch_row($query))
{
//get columns
$ID = $row[0];
$email = $row[1];
$job_title = $row[2];
print ("<form method='$PHP_SELF' action='post'>");
print ("<input type='text' name='email' value='$email'>");
print ("<input type='hidden' name='ID' value='$ID'>");
print ("<input type='text' name='job_title' value='$job_title'>");
//blah blah blah
print ("<input type='submit' name='submit' value='Submit'>");
print ("</form>");
}
}
?>
Or something to that effect...?
HTH
Scott d~