I have the following dropdown form :
<select value="<?php echo $salesman; ?>" class="form-control" name="data[Invoice][salesman]" placeholder="Salesman">
<option value="Unset" <?= ($invoice['Invoice']['salesman']) == 'Unset' ? 'selected' : '' ?>>Please Choose</option>
<option value="Person 1" <?= ($invoice['Invoice']['salesman']) == 'Person 1' ? 'selected' : '' ?>>Person 1</option>
<option value="Person 2" <?= ($invoice['Invoice']['salesman']) == 'Person 2' ? 'selected' : '' ?>>Person 2</option>
<option value="Person 3" <?= ($invoice['Invoice']['salesman']) == 'Person 3' ? 'selected' : '' ?>>Person 3</option>
<option value="None" <?= ($invoice['Invoice']['salesman']) == 'None' ? 'selected' : '' ?>>None</option>
</select>
and the SQL code to parse it(snippet) :
$salesman = mysqli_real_escape_string( $this->_con, trim( $data['data']['Invoice']['salesman'] ) );
How would I convert the dropdown to be instead images as in the image I have uploaded? The end result would allow the user to click on multiple people, and have that information stored, and retrieved properly when viewing the page. The people selected will have their button highlighted as such with a custom image.