I haven't tried the way you are doing it, but here's how I'd do it...
$db=mysql_connect($hostname, $username, $password);
mysql_select_db($database, $db);
$querySQL= sprintf("SELECT * FROM clients WHERE clientname = '%s', $clientname);
$data=mysql_query($querySQL,$db);
$dataRow = mysql_fetch_assoc($data);
in your form:
<form method="post" name="form1" action="process_it.php">
<table>
<tr>
<td>Client:>
<td><?php echo $dataRow['clientname']; ?></td>
</tr>
</form>
ok?