may i know how do i ensure that the user have selected, Dr, Mr, Ms, Mdm and when they submit the form if the salutation is given as blank it will return an error message for the set_rules().
Code:
echo "<p>Salutation: ";
$salutationOptions = array(
'' => '',
'Dr' => 'Dr',
'Mr' => 'Mr',
'Ms' => 'Ms',
'Mdm' => 'Mdm',
);
echo form_dropdown('salutation', $salutationOptions, '');
echo "</p>";