There have three files and I have also requested a list when selecting the value of the list must be other values in the print files required Example
<select name="FileNO" onChange="change_pationt(this.value);">
<?
$query="SELECT * FROM pationt";
$result=mysql_query($query) or die("error: " . mysql_error());
while($row=mysql_fetch_array($result))
{
echo "???";
?>
<option value="<?php echo $row['PationtName'] ; ?>"><?php echo $row['PNO'] ; ?></option>
<?
}
?>
</select>
<input name="PationtName" type="text" id="PationtName"/>
<input name="address" type="text" id="address"/>
<input name="tell" type="text" id="address"/>
when i select from list value , we must print on each filetext value of it >>>who
i can solveed by using java script but it print only for pationtname ???
function change_doctor(ref)
{
document.getElementById('DocName').value = ref;
}