Making a preselected drop-down selection box in HTML
You can use a lookup table for your values like this:

$values = array("magic" =&gt; "Magic points", ...);


and then loop over that to reduce the duplication:

foreach ($values as $key =&gt; $value) {
    ...