I have an HTML dropdown menu that looks like this
This is standard PHP behaviour. From the documentation:
Dots and spaces in variable names are converted to underscores. For example
<input name="a.b" />
becomes$_REQUEST["a_b"]
.
The full list of field-name characters that PHP converts to _
(underscore) is the following (not just dot):
(space).
(dot)[
(open square bracket)If both an open and a closing square bracket are present, they are not converted but the $_POST element becomes an array element.
<input name='hor[se'>
<input name='hor[se]'>
will become:
$_POST['hor_se'];
$_POST['hor']['se'];
::Reference