Im New to Ajax and PHP.
I would like to update my php selectlist( which is populated from the file lastlog) using ajax.Im new to ajax and php.Im trying to use onclick javascript action to update my php select list contents from different file
function selectlist()
{
$count = count(file('/var/www/php/userAccount/UserDeactivator/lastlog'));
$userlist = file('/var/www/php/userAccount/UserDeactivator/lastlog');
$option = '';
$options .= "<option disabled =CSL>UserID(Total $count Inactive Users)</option>";
foreach ($userlist as $ong)
{
$options .= '<option>' . $ong . '</option>';
} //$userlist as $ong
$select = '<select name="Category[]" multiple="multiple" size="10">' . $options . '</select>';
// $select = '<select name=''>'.$options.'</select>';
echo $select;
}