aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/gender.php
blob: e54fb8e70a2501a4bd2b9198941c4fbe3d8d70b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

    $options = array('Male' => "Male", 'Female' => "Female");
    foreach($options as $option => $label) {
        if ($option != $vars['value']) {
            $selected = "";
        } else {
            $selected = "checked = \"checked\"";
        }
        echo "<label><input type=\"radio\" {$vars['js']} name=\"{$vars['internalname']}\" value=\"".htmlentities($option)."\" {$selected} />{$label}</label><br />";
    }

?>