Grabbing Values Outside a Form with PHP -


i'm using following code on site. you'll notice there checkbox outside form (towards bottom). need value of checkbox called send_mail.php without creating second form, , without placing inside form element. possible php? `

                 <h2>search dream home<br />        , save now!</h2>                 <legend>which areas interested in?</legend>                 <div class="areas row-fluid" style="text-align:left !important;">                                            <div class='span5' style='margin-left:0px !important;'>                         <label>                             <input type="checkbox" name="arrayvalue[]" id="area[0]" value="test" style='margin-top:-5px !important;'> test</label>                     </div>                               </div>                 <input type="button" onclick="jquery('#mymodal').modal('show')" value="continue" />           </div>         </div>     </div>  <!--banner area end-->     <!--content area 1 start-->     <div id="content1">         <div class="content1_in"> <span>  <h2 style="line-height:40px;font-size:40px;padding-bottom:10px">some content </span>              <div class="img">                <img src="http://f14.co/realtor/assets/images/phone.png" alt="" />             </div>         </div>     </div>     <!--content area 1 end-->     <!--content area 1 start-->     <div id="content2">         <div class="content2_in"> <span> content  </span>              <div class="img">                 <img src="http://f14.co/realtor/assets/images/ipad-img.png" alt="" />                 <div class="key"></div>             </div>         </div>      </div>     <!--content area 1 end-->     <!--content area 3 start-->     <div id="content3">         <div class="content3_in"> <span>   content   </span>              <div class="img">                 <img src="http://f14.co/realtor/assets/images/desktop-img.png" alt="" />             </div>             <div class="free"></div>         </div>     </div>     <!--content area 3 end-->     <div id="footer">         <div class="footer_in">             website brought by: test</div>     </div>     <!-- modal -->     <div id="mymodal" class="modal hide fade modal-survey" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="true">         <div class="modal-header">             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>              <h3 id="mymodallabel" class="survey_title">what type of home looking for?</h3>          </div>         <form method="post" class="form-horizontal" id="final_form" action="send_mail.php">         <input type="hidden" name="template" id="template" value="buyers" />             <div class="modal-body" >                 <div id="lead_info_1">                     <div class="input select">                         <div class=""></div>... 

i add hidden input in form.
then, before post, assign of hidden textbox value of checkbox.
(using jquery)


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -