That works great, Barand! Thank you so much!
I am having an issue with the text in the dropdown selection's text area not showing up though. It seems to be there, but it's not showing up.
<select id="menu" name="selection">
<option value="">Choose a Rifle</option>
<?php
foreach ($data as $row) {
echo "<option value={$row['id']} data-em='{$row['em']}' data-gm='{$row['gm']}'>" . htmlspecialchars( $row["rifleName"] ) . "</option>";
}
?>
</select>
em:<input type="text" class="charge-type" name="em" id="em" value="0" disabled size="5"/>
gm: <input class="charge-type" name="gm" id="gm" value="0" disabled size="5"/>
The screenshot is without any CSS styling. I tried styling the selection box making the background black and including CSS `color: white;` to try making the text white to see what it did. When I did that the spaces are still there as if the text is there but....it's not there.
It's doing as shown in the screenshot in every browser I have except in firefox the background of the text area is black for some reason. Without any CSS styling it.
What...um....?? LOL!
There's no css:
<html>
<head>
</head>
<body>
<?php
$servername = "localhost";
$dbport = '3306';
I thought FireFox might be doing that because I'm using win10's dark theme. I changed it to default, closed all my windows, re-opened firefox and it's still the same. No text in the menu.