Note that there are some explanatory texts on larger screens.

plurals
  1. POGrabbing Values Outside a Form with PHP
    primarykey
    data
    text
    <p>I'm using the following code on my site. You'll notice that there is a checkbox outside the form (Towards the bottom). I need the value of the checkbox called to send_mail.php without creating a second form, and without placing it inside the form element. Is this even possible with PHP? ` </p> <pre><code> &lt;h2&gt;Search for your dream home&lt;br /&gt; and save now!&lt;/h2&gt; &lt;legend&gt;Which Areas are you interested in?&lt;/legend&gt; &lt;div class="areas row-fluid" style="text-align:left !important;"&gt; &lt;div class='span5' style='margin-left:0px !important;'&gt; &lt;label&gt; &lt;input type="checkbox" name="arrayValue[]" id="area[0]" value="test" style='margin-top:-5px !important;'&gt; test&lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;input type="button" onclick="jQuery('#myModal').modal('show')" value="CONTINUE" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--banner area end--&gt; &lt;!--content area 1 start--&gt; &lt;div id="content1"&gt; &lt;div class="content1_in"&gt; &lt;span&gt; &lt;h2 style="line-height:40px;font-size:40px;padding-bottom:10px"&gt;SOME CONTENT &lt;/span&gt; &lt;div class="img"&gt; &lt;img src="http://f14.co/realtor/assets/images/phone.png" alt="" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--content area 1 end--&gt; &lt;!--content area 1 start--&gt; &lt;div id="content2"&gt; &lt;div class="content2_in"&gt; &lt;span&gt; SOME CONTENT &lt;/span&gt; &lt;div class="img"&gt; &lt;img src="http://f14.co/realtor/assets/images/ipad-img.png" alt="" /&gt; &lt;div class="key"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--content area 1 end--&gt; &lt;!--content area 3 start--&gt; &lt;div id="content3"&gt; &lt;div class="content3_in"&gt; &lt;span&gt; SOME CONTENT &lt;/span&gt; &lt;div class="img"&gt; &lt;img src="http://f14.co/realtor/assets/images/desktop-img.png" alt="" /&gt; &lt;/div&gt; &lt;div class="free"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--content area 3 end--&gt; &lt;div id="footer"&gt; &lt;div class="footer_in"&gt; This Website Is Brought To You By: Test&lt;/div&gt; &lt;/div&gt; &lt;!-- Modal --&gt; &lt;div id="myModal" class="modal hide fade modal-survey" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" 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="myModalLabel" class="survey_title"&gt;What type of home are you looking for?&lt;/h3&gt; &lt;/div&gt; &lt;form method="post" class="form-horizontal" id="final_form" action="send_mail.php"&gt; &lt;input type="hidden" name="template" id="template" value="Buyers" /&gt; &lt;div class="modal-body" &gt; &lt;div id="lead_info_1"&gt; &lt;div class="input select"&gt; &lt;div class=""&gt;&lt;/div&gt;... </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload