I am trying to stop a webform giving "–" instead of "-"
$time = $_POST['CBTime'] ;
$fixtime = htmlspecialchars_decode($time);
...
"Contact them on $day at $fixtime.\n".
Is the PHP I have
And the element of the form is
<select class="callback-time" id="CBTime" name="CBTime"><option value="">Time</option><option>Any time</option>
<option>9am – 11am</option>
<option>11am – 2pm</option>
<option>2pm – 5pm</option>
</select>
So an example of what will be outputted form is:
Contact them on Wednesday at 9am – 11am.