passing value to bootstrap model using php
<p>I have a button and I am trying to pass value to a model.Inside button I have name="className" value="CPS210-CompSci-I (4)" button is type submit. </p>

<pre><code>     &lt;button type="submit" data-toggle="modal" data-target="#myModal" 
       class="btn btn-info btn-md" name="className" value="CPS210-CompSci-I (4)"&gt;
       &lt;span class="glyphicon glyphicon-comment"&gt;&lt;/span&gt; Comment
     &lt;/button&gt;  
</code></pre>

<p>I have a model. Inside model I have php $className =$POST['className'];
                   echo "$className";</p>

<pre><code> &lt;div ng-app class="modal fade" id="myModal" role="dialog"&gt;
   &lt;div class="modal-dialog modal-md"&gt;
      &lt;div class="modal-content"&gt;
         &lt;div class="modal-header"&gt;
            &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
            &lt;h4 class="modal-title"&gt;&lt;?php echo "Note for $firstname $lastname" ?&gt;&lt;/h4&gt;
         &lt;/div&gt;
         &lt;div class="modal-body"&gt;
            &lt;div class="form-group"&gt;
               &lt;textarea class="form-control" ng-model="note"
                  placeholder="Here you can write a a note for the student. " id="message" 
                  required data-validation-required-message="Please enter a Goal"&gt;&lt;/textarea&gt;
               &lt;p class="help-block text-danger"&gt;&lt;/p&gt;
               &lt;label class="light"&gt;
            &lt;/div&gt;
            &lt;hr&gt;
            &lt;?php $className = $_POST['className'];
               echo "$className";
                         ?&gt;                                 
            &lt;h4&gt;Note Regarding:{{note}} &lt;/h4&gt;
         &lt;/div&gt;
         &lt;div class="modal-footer"&gt;
            &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
         &lt;/div&gt;
      &lt;/div&gt;
   &lt;/div&gt;
&lt;/div&gt;
</code></pre>