<tr> 
	<td style='min-width:300px;'> 
	<select class='form-control form-control-sm select2' name='contactid[]' style='width:100%;'>
		<option value=''>--</option>
		<?php
			foreach($contacts as $data) {
				$qcontactid = $data['contactid'];
				$qfirstname = $data['firstname'];
				$qlastname = $data['lastname'];
				$qemail = $data['email_1'];
				echo "<option value='$qcontactid'>$qfirstname $qlastname - $qemail</option>";
			}
		?>
	</select> 
	</td> 
	<td><input class='form-control form-control-sm' type='text' id='email' name='contactemail[]' /></td> 
	<td><input class='form-control form-control-sm' type='text' name='jobtitle[]' /></td> 
	<td><input class='form-control form-control-sm' type='text' name='department[]'  /></td>
	<td><button type='button' class='btn btn-sm btn-warning' onclick='f_sitecontactid_delete(this, 0)'>Delete</button>
</tr>