Make a select with options that will be saved and variable!

0

Good morning, I would like to create a code in which I have a select with several options and when one of them is selected and the user gives the submit, the string of that option is passed to a variable, can you help me? in the case of the code below I tried to use the angular but I am still beginner, can use any language to do the select Thank you

<form class="form" method="post" action="date.php">

            <br>
            <div class="input-group">
                <div class="input-group-btn">
                    <input class="btn" type="submit">
                </div>
                <input type="month" class="form-control" name="datac" value="<?php echo $ano ?>-<?php echo $mes ?>" required>
                <div ng-app="myApp" ng-controller="myCtrl">
                    <select ng-model="uni">
                        <option value="BRAZIL" ng-selected="uni=='BRAZIL'">BRAZIL</option>
                        <option value="USA" ng-selected="uni == 'USA'">USA</option>
                        <option value="CANADA" ng-selected="uni == 'CANADA'">CANADA</option>
                        <option value="RUSSIA" ng-selected="uni == 'RUSSIA'">RUSSIA</option>
                    </select>
    
asked by anonymous 23.06.2016 / 15:01

0 answers