Note that there are some explanatory texts on larger screens.

plurals
  1. POselect value not taking properly
    primarykey
    data
    text
    <p>i have one big form.. there have some so many select option. and its from to mail function. bellow is my code</p> <pre><code> &lt;label&gt;Type of Event? &lt;/label&gt; &lt;select id="eventtype" title="" name="eventtype" class="required select"&gt; &lt;option value=""&gt;Select Your Event Type&lt;/option&gt; &lt;option value="WEDDINGS"&gt;WEDDINGS&lt;/option&gt; &lt;option value="CORPORATE"&gt;CORPORATE EVENT&lt;/option&gt; &lt;option value="SPECIAL"&gt;SPECIAL EVENT&lt;/option&gt; &lt;option value="OTHER"&gt;OTHER SINGLE SERVICES&lt;/option&gt; &lt;/select&gt; &lt;div class="cls"&gt;&lt;/div&gt; &lt;div class="container"&gt; &lt;div class="WEDDINGS"&gt; &lt;label&gt;Package&lt;/label&gt; &lt;select name="Package" id="Package"&gt; &lt;option value="Day Of Coordination"&gt;Day Of Coordination&lt;/option&gt; &lt;option value="Week of Coordination"&gt;Week of Coordination&lt;/option&gt; &lt;option value="Month of Coordination"&gt;Month of Coordination&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class="CORPORATE"&gt; &lt;label&gt;Package&lt;/label&gt; &lt;select name="Package" id="Package"&gt; &lt;option value="Meetings"&gt;Meetings&lt;/option&gt; &lt;option value="Client Appreciation"&gt;Client Appreciation&lt;/option&gt; &lt;option value="Conference &amp;amp; Conventions"&gt;Conference &amp;amp; Conventions&lt;/option&gt; &lt;option value="Corporate Shows"&gt;Corporate Shows&lt;/option&gt; &lt;option value="Employee Appreciation"&gt;Employee Appreciation&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class="SPECIAL"&gt; &lt;label&gt;Package&lt;/label&gt; &lt;select name="Package" id="Package"&gt; &lt;option value="Engagements"&gt;Engagements&lt;/option&gt; &lt;option value="Bar Mitzvah"&gt;Bar Mitzvah&lt;/option&gt; &lt;option value="Quincearas"&gt;Quincearas&lt;/option&gt; &lt;option value="Birthdays"&gt;Birthdays&lt;/option&gt; &lt;option value="Fashion Shows"&gt;Fashion Shows&lt;/option&gt; &lt;option value="Showers"&gt;Showers&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class="OTHER"&gt; &lt;label&gt;Package&lt;/label&gt; &lt;select name="Package" id="Package"&gt; &lt;option value="Wedding Consultation and Guidance Only"&gt;Wedding Consultation and Guidance Only&lt;/option&gt; &lt;option value="Venue Search Only"&gt;Venue Search Only&lt;/option&gt; &lt;option value="Coordination of Engagement Party Only"&gt;Coordination of Engagement Party Only&lt;/option&gt; &lt;option value="Providing Qualified and Screened Vendors Only"&gt;Providing Qualified and Screened Vendors Only&lt;/option&gt; &lt;/select&gt; </code></pre> <p>js code for realtion with drop down</p> <pre><code> &lt;script&gt; $(document).ready(function() { $('#eventtype').bind('change', function() { var elements = $('div.container').children().hide(); var value = $(this).val(); if (value.length) { elements.filter('.' + value).show(); } }).trigger('change'); }); &lt;/script&gt; </code></pre> <p>my from is like if select WEDDING then show Wedding div so show there another drop down.. and if select CORPORATE EVENT then show CORPORATE EVENT div... but no matter what drop down i select when mail go correct data not pass. its goes always OTHER div 1st select value mean "Wedding Consultation and Guidance Only" ... i have no idea why... may be i mistake something... bellow is part of php mail code</p> <pre><code> if($violation) { $eventtype = $_POST['eventtype']; $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $datepicker = $_POST['datepicker']; $datepicker2 = $_POST['datepicker2']; $time = $_POST['time']; $EMAIL = $_POST['EMAIL']; $phone = $_POST['phone']; $Package = $_POST['Package']; $otherfound = $_POST['otherfound']; if (isset($_POST['found_group'])) { $found = $_POST['found_group']; for ($i=0; $i&lt;count($found); $i++) { //echo $found[$i]."&lt;br /&gt;"; $found=implode("&lt;br /&gt;",$found); } } </code></pre> <p>all i want to correct data will go .. can you tell me where i am mistaking... thanks</p>
    singulars
    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