title: Save to database on click of button
body: <p>I have a page with several models it.</p>
  
  <p>If the user changes something in a texbox within the modal, is there a way it can save the changes on click without going to a new page?</p>
  
  <p>Here is an example model:</p>
  
  <pre><code>&lt;div id="myModal6" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel3" aria-hidden="true"&gt;
                                  &lt;div class="modal-header"&gt;
                                      &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&lt;/button&gt;
                                      &lt;h3 id="myModalLabel3"&gt;Homepage Testimonial&lt;/h3&gt;
                                  &lt;/div&gt;
                                  &lt;div class="modal-body"&gt;
  
                                 &lt;h5&gt;&lt;b&gt;Testimonial: &lt;/b&gt;&lt;/h5&gt;
                &lt;textarea name="hometest" style="width: 500%" height:"150%";&gt;&lt;?php echo $hometest ; ?&gt;  &lt;/textarea&gt;
                &lt;br&gt;&lt;br&gt;
  
                &lt;h5&gt;&lt;b&gt;Testimonial From:&lt;/b&gt; &lt;/h5&gt;&lt;input type="text" name="hometestfrom" value="&lt;?php echo $hometestfrom ; ?&gt;"&gt;&lt;br&gt;
                                  &lt;/div&gt;
                                  &lt;div class="modal-footer"&gt;
                                      &lt;button class="btn red" data-dismiss="modal" aria-hidden="true"&gt;Cancel&lt;/button&gt;
                                  &lt;a href='index.php'&gt;    &lt;button class="btn green"&gt;Save&lt;/button&gt;&lt;/a&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt; 
  </code></pre>