Hi,
this code seems good, (I didn't change the PHP, but validated it as html code).
q. from where do you get the value of $jobId?, please write more codePHP Code:while ($row = mysql_fetch_array($aJobs)) {
$sOptionSelected = '';
if ($row['job_id'] == $jobId) {
$sOptionSelected = 'selected="selected"';
}
$sJobOptions = $sJobOptions.'<option value="'.$row['job_id'].'" '.$sOptionSelected.'>'.$row['job_desc'].'</option>';
}
Feras Jobeir




Reply With Quote