hey thanx for the suggestion.......
i want some thing like this......selecting a value in the drop down menu and based on selection the respective data from the database should be autofilled into the other textboxes....there shud be no button click...
thanx ahmed
Quote:
|
Originally Posted by simjay
Hope that helps.
PHP Code:
<?
$sql = "SELECT data FROM table";
$result = mysql_query($sql, $conn) or die(mysql_error());
while ($newArray = mysql_fetch_array($result)) {
$data= $newArray['data'];
}
?>
<input type="text" name="textfield" value="<? echo "$data"; ?>" />
|