Title: Request Drop Down Select Form Field
Last modified: August 22, 2016

---

# Request Drop Down Select Form Field

 *  [wdhppr](https://wordpress.org/support/users/wdhppr/)
 * (@wdhppr)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/)
 * I would like to request a feature to include Drop Down Select Form Fields. Input
   to Drop Down could be a Table/Column or list. Intended use for me would be for
   a search but would be useful in an input field. Thank you for your consideration.
 * [https://wordpress.org/plugins/abase/](https://wordpress.org/plugins/abase/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [NSRS](https://wordpress.org/support/users/nsrs/)
 * (@nsrs)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915282)
 * Any luck with above request. I have the same problem. Want to create a drop down
   list with single record from database..
 *  Thread Starter [wdhppr](https://wordpress.org/support/users/wdhppr/)
 * (@wdhppr)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915374)
 * Ok – I have found a way that is working for me. I use the HTML code to generate
   the drop down <select> <form> and then use another plugin ‘php everywhere’ to
   insert returned value into abase shortcode. Gotta love that PHP do_shortcode()
   function.
 * Currently I have hard coded the <form> <select> <options> in my page for the 
   dropdown. This solves my input to Drop Down for search in abase. Next step is
   to see if I can do what NSRS is asking.
 *  [wazzaah](https://wordpress.org/support/users/wazzaah/)
 * (@wazzaah)
 * [11 years ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915393)
 * Hi wdhppr,
 * Can you post your php code please ? I’m very interested to see how to interact
   with abase variable.
 * For the drop down, if you have a foreign key to a table with the list you want
   in drop down, you simply have to tell it in the shortcode.
 * Example :
    You have a table contact with a id_title (that is a foreign key to
   the primary key on title table) and title table has just the key + title
 * If you put an update or insert form with table=”contact” elements=”name,surname,
   id_title|title”, [Abase] will create the dropdown list with every titles in table
   title for you. Very convenient because you don’t have to hard code anything
 * Stephane
 *  [NSRS](https://wordpress.org/support/users/nsrs/)
 * (@nsrs)
 * [11 years ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915394)
 * Me too!
 * Can you please post PHP Code??
 *  [zoluxa](https://wordpress.org/support/users/zoluxa/)
 * (@zoluxa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915395)
 * Hi wdhppr, can you tell us how you insert returned value into abase shortcode?
   Will be pleasure for answer
 *  Thread Starter [wdhppr](https://wordpress.org/support/users/wdhppr/)
 * (@wdhppr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915396)
 * Ok – Sorry been out of it for a while but to embed PHP in my abase page I installed
   the PHP Anywhere Plugin. This allowed me to embed my own PHP code into my page:
 * <?php
    echo ‘<h2>Department: ‘; $dept=$_POST[‘Department’]; echo $dept; echo ‘
   </h2>
 * ‘;
    echo do_shortcode( “[abase table=’krmcconnect’ columns=’Firstname,Lastname,
   Title,Telephone,Extension,email’ where=’Department LIKE \”%$dept%\”‘ order=’Lastname’
   limit=300]”); ?>
 * do_shortcode in the PHP ([https://codex.wordpress.org/Function_Reference/do_shortcode](https://codex.wordpress.org/Function_Reference/do_shortcode))
   lets me take the posted selection into the abase shortcode.
 *  [zoluxa](https://wordpress.org/support/users/zoluxa/)
 * (@zoluxa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915397)
 * Thank you!
 *  [zoluxa](https://wordpress.org/support/users/zoluxa/)
 * (@zoluxa)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915399)
 * Hello wdhppr! I’m trying to do somethink but it still don’t work/ can you help
   me?
    <?php echo ‘<h2>Область: ‘; $obl=$_POST[‘Область’]; echo $obl; echo ‘</h2
   >’; echo do_shortcode(‘[abase form=”1,search” table=”Refery” columns=”ID,Фамилия,
   Категория$Поиск” elements=”ID,Фамилия,Категория” where=”Область LIKE “$obl””]’);?
   >

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Request Drop Down Select Form Field’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/abase.svg)
 * [ABASE](https://wordpress.org/plugins/abase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/abase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/abase/)
 * [Active Topics](https://wordpress.org/support/plugin/abase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/abase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/abase/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [zoluxa](https://wordpress.org/support/users/zoluxa/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/request-drop-down-select-form-field/#post-5915399)
 * Status: not resolved