You can create an array with values, for example
$options = array(
'Retail', 'Restaurant', 'Salon'
);
Then follow simple forto output values to the form
<select name="industry">
<?php for ($i = 0; $i < count($options); $i++) { ?>
<option value="<?php echo $options[$i]; ?>"<?php echo $_POST['industry'] == $options[$i] ? ' selected="selected"' : ''; ?>><?php echo $options[$i]; ?></option>
<?php } ?>
</select>
source
share