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.