Results 1 to 3 of 3

Thread: Drop down list/menu in sidebar contact form

  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 sidebar contact form

    Hello All,

    Can you please someone help me to on this?

    I think it would take you less than 1 min if you know the answer and I also believe that there are lots of people out there wants to know the answer.

    There are several fields, in the ClassiPress's sidebar contact form (sidebar-contact.php) which are:

    • Name
    • Email
    • Subject
    • Message

    For example for a name field, the following code is written.

    <li>
    <label><?php _e('Name: ', 'appthemes') ?></label>
    <input name="from_name" id="from_name" type="text" minlength="2" value="<?php if(isset($_POST['from_name'])) echo stripslashes($_POST['from_name']); ?>" class="text required" />
    <div class="clr"></div>
    </li>

    My question is: Can you please just write the similar code for a drop down field (list/menu)?

    In example:
    =========
    If there was a field called Room Types and was written like this.

    <select name="room_types" id="room_types">
    <option selected="selected">Select One</option>
    <option value="Single Room">Single Room</option>
    <option value="Twin Room">Twin Room</option>
    <option value="Double Room">Double Room</option>
    <option value="Triple Room">Triple Room</option>
    <option value="Family / Quads Room">Family / Quads Room</option>
    <option value="Suite">Suite</option>
    </select>

    How Can you write it as shown here?

    <li>
    <label><?php _e('Name: ', 'appthemes') ?></label>
    <input name="from_name" id="from_name" type="text" minlength="2" value="<?php if(isset($_POST['from_name'])) echo stripslashes($_POST['from_name']); ?>" class="text required" />
    <div class="clr"></div>
    </li>

    Please somebody answer this question. I have been arising this more than a week and no one has been replied yet.

    Thank you for reading and also thanks for any answers.

  2. #2
    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!

  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!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sidebar contact form - users not getting messages
    By epijunky in forum Report ClassiPress Bugs
    Replies: 28
    Last Post: October 15th, 2015, 02:46 PM
  2. [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, 04:03 PM
  3. Sidebar Contact Form
    By rojda in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 23rd, 2011, 08:40 AM
  4. Reply to email from sidebar contact form
    By epijunky in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: June 9th, 2011, 08:58 AM
  5. [MOD NEEDED] Put a dropdown list in contact form
    By alinimmo in forum ClassiPress General Discussion
    Replies: 5
    Last Post: February 4th, 2011, 09:08 AM