Results 1 to 4 of 4

Thread: Drop Down list/menu in the sidebar-contact.php

  1. #1
    Thread Starter
    Member rojda's Avatar
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    96
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Drop Down list/menu in the sidebar-contact.php

    Hello All,

    I have raised this question many time and nobody answers it. Then I have done some research and came up with the following codes.

    What I have done:

    In the sidebar-contact.php, I have created a drop down field as you can see it below:


    sidebar-contact.php


    <select name="from_roomtypes" id="from_roomtypes">

    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Select One</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Single Room</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Twin Room</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Double Room</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Triple Room</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Family Room</option>
    <option class="text" value="<?php if(isset($_POST['from_roomtypes'])) echo stripslashes($_POST['from_roomtypes']); ?>">Suit Room</option>
    </select>



    Then I have created two lines in the theme-emails.php file as you can see it below.

    theme-emails.php


    $from_roomtypes = strip_tags($_POST['from_roomtypes']);

    $message .= sprintf(__('Room Types: %s', 'appthemes'), $from_roomtypes) . "\r\n";

    Everything is written in right places.No worries there...

    I can see the drop down filed list/menu at my sidebar contact form.

    However, when I submit an enquiry, I receive an email without the value of the Room Types.

    That means I am doing something wrong in the sidebar-contact.php form..

    I thought someone might help me out after all this. I promise you if you solve this then I will write down a very good tutorial on this.

    Thanks

    PS: The following message is for pepsi

    pepsi has exceeded their stored private messages quota and cannot accept further messages until they clear some space.

  2. #2
    rubencio's Avatar
    Join Date
    May 2010
    Location
    Spain
    Posts
    3,804
    Thanks
    268
    Thanked 316 Times in 278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

    r u b e n c i o . c o m


    Since 2010 providing AppThemes solutions,
    Plugins and the best childthemes...



  3. #3
    Thread Starter
    Member rojda's Avatar
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    96
    Thanks
    0
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,703
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Need a drop-down list to adapt to another drop down list (Region/State)
    By retorit in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 11th, 2015, 03:03 PM
  2. Is there a drop down default list Counties/Cities for UK?
    By classy in forum Help Using ClassiPress
    Replies: 7
    Last Post: January 5th, 2012, 10:50 PM
  3. Drop down list/menu in sidebar contact form
    By rojda in forum ClassiPress General Discussion
    Replies: 2
    Last Post: November 26th, 2011, 03:32 PM
  4. Currency in drop down list
    By Andre in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 21st, 2011, 07:12 PM