<script type="text/javascript">
$('inpu
t[name="vca"]').click(function(){
$('input[name="name"]').val($(this).val());
});
</script>
<label><input type="radio" value="<?=$key?>" name="vca"><?=$A?></label>
<input type="text" class="mytext" name="name">
<? echo $A; ?>