php - How to display the text of particular item in the modal window by passing the id value in the modal window? -


i have code of html different number of packages given below :

 <article class="col-lg-4 col-md-4 col-sm-6 col-xs-12 baner-box">                     <div class="thumb-pad1">                                               <div class="thumbnail">                                                   <figure>                                                         <img src="images/packages/<?php echo $arr["package_image"]; ?>" alt="">                                                         <h3>hi</h3>                                                         <h4>welcome</h4>                                                         <p>fggf</p>                                                         <div class="package-btn">                                                                 <a data-toggle="modal" href="#mymodal" class="btn btn-submit" >book / enquiry / pay</a>                                                          </div>                                                   </figure>                                               </div>                     </div>                 </article> 

when clicking button book / enquiry / pay in above code, modal window gets opened. modal code shown below :

<div class="modal fade" id="mymodal"> <div class="modal-dialog">     <div class="modal-content">     <div class="modal-header">             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>                 <h4 class="modal-title">enquiry / booking / payment</h4>          </div>       <div id="contact_form_bg">      <div class="form_header">         </div>      <div class="contact_form body">      <form action="#contactform" id="contactform" method="post" enctype="multipart/form-data">     <ul>        <li>       <p class="left">          <input type="date" name="date" placeholder="date" required>       </p>       <p class="left">          <input type="time" name="time" placeholder="time" required>             </p>       <p class="left">          <input type="text" name="name" placeholder="full name" required>             </p>       <p class="left">         <input type="text" name="name" placeholder="contact number" required>         </p>     </li>      <li>       <p class="left">        <input type="email" name="mail" placeholder="your email" required>          </p>        <p class="left">          <input type="text" name="no-of-people" placeholder="selected package">               </p>       <p class="left">     <select>    <option value="" disabled="disabled" selected="selected">select package type</option>    <option value="1"> 14 days - rs.20000 </option>    <option value="2">21 days - rs.25000</option>     </select>                   </p>        <p class="left">     <select>      <option value="" disabled="disabled" selected="selected">gender</option>     <option value="1">female</option>     <option value="2">male</option>  </select>                  </p>       </li>              <li>      <p class="txtarea-style">       <textarea cols="46" rows="3" name="comments" placeholder="message ...."></textarea>       </p>       <p>       <input class="btn btn-submit" type="submit" value="enquiry">       </p>       <p>       <input class="btn btn-submit" type="submit" value="booking">       </p>      <!-- <p>        <a data-toggle="modal" href="#mymodal2" class="btn btn-submit" >booking payment </a>       </p>-->      </li>        </ul>    </form>    </div>  </div>     </div>    </div> </div> 

i want display value of corresponding package in tag in selected package field in modal window passing id value of particular package in database , display values in , ,

tags. each package there article code , want display values in each package in corresponding modal window in selected package input field passing id value of particular package in database.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -