Gelen TC Kimlik numarası ile ilişkili olan tek bir üye olabileceği için while kullanmanıza gerek yok.
<?php
include('baglanti.php');
$uyeTc=$_POST['uyeTc'];
$sor=mysql_query("select * from uye ......... ");
$yaz = mysql_fetch_assoc($sor);
$uyeAd =$yaz['uyeAd'];
$uyeSoyad =$yaz['uyeSoyad'];
$uyeTc =$yaz['uyeTc'];
?>Ardından soyadı bilgisini text field içinde göstermek için;
<input type="text" name="uyeSoyad" id="uyeSoyad" class="txt" value="<?php echo $uyeSoyad; ?>" />