-->>Hello,My problem is how will a trigger a php Function based up on Change event of a listbox value.
My Page has the Field as those in the screenshot below the code:
So when a driver is selected on the list all his/her details should be populated in the remaining fields on the page as I already capture the Value of a driver from the Listbox.
My php code for catching up drivers details is:
public function Drivers_Details()
{
$sql="SELECT * FROM school_drivers WHERE idDriver=".`$_POST["Driver_ID"]`."" ;
$query=mysql_query($sql);
$find=mysql_fetch_array($query);
if($find)
{
$find["First_Name"];
$find["First_Name"];
$find["Second_Name"];
$find["Last_Name"];
$find["Gender"];
$find["Mobile_Number"];
$find["Residence"];
}
}
Note that $_POST["Driver_ID"]
is the value from the listbox that populates driver's names.
I got some suggestions about jquery and java but I'm NOT good at all with the languages.
Much appreciations.