title: Can't in display the pop up window on button click
body: <p>I'm developing website in php using codeigniter.I need to add pop window when in click "Book now" button in my view (profile.php) following code  is working perfectly in HTML Page without any problem but when i mix php tags the pop up window come and disperser quickly.this is the code that i using i can't find the problem and heed quick help,Can some one explain the error in here?</p>
  
  <p>this is the code that using</p>
  
  <pre><code>&lt;button class="btn btn-danger" id="buy-btn"&gt;BOOK NOW&lt;/button&gt;
          &lt;!-- Modal --&gt;
           &lt;div class="modal fade" id="moreInfo" tabindex="-1" role="dialog" aria-labelledby="moreInfoLabel" aria-hidden="true"&gt;
         &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
              &lt;h4 class="modal-title" id="moreInfoLabel"&gt;&lt;?php echo $package_data['PackageTitle']; ?&gt;&lt;/h4&gt;
             &lt;/div&gt;
            &lt;div class="modal-body"&gt;
          &lt;p&gt;Number of Peaple :&lt;?php echo $tour_data['Visitors']?&gt;&lt;/p&gt;
          &lt;p&gt;Itenaries : Elephant Blues, Gallface, Brown Circus, Nelum Tower&lt;/p&gt;
          &lt;p&gt;Method of Travel : Taxi Service&lt;/p&gt;
          &lt;p&gt;Total Time Estimated : 6 Hours&lt;/p&gt;
          &lt;hr&gt;
          &lt;h4&gt;Terms and Conditions&lt;/h4&gt;
              &lt;p&gt;&lt;?php echo $tour_data['TermsAndConditions']; ?&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-primary center-block"&gt;Book Now&lt;/button&gt;
          &lt;/div&gt;
          &lt;/div&gt;&lt;!-- /.modal-content --&gt;
      &lt;/div&gt;&lt;!-- /.modal-dialog --&gt;
     &lt;/div&gt;&lt;!-- /.modal --&gt;
  </code></pre>