Title: Adding extra form option
Last modified: August 22, 2016

---

# Adding extra form option

 *  Resolved [VersGemerkt](https://wordpress.org/support/users/stilld/)
 * (@stilld)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-extra-form-option/)
 * I’m so close!!!
 * I’m trying to add another form option for people to fill out (zipcode).
 * I managed to let it appear in the form.
    I managed to show zipcode in the backend
   of the plugin, even in the excel. BUT it just doesn’t give a value! So in my 
   excel it says: zipcode: ‘blank’
 * I’ve added:
 * to em-booking.php:
 *     ```
       if( !empty($_REQUEST['dbem_zipcode']) ){
       	    	$user_data['dbem_zipcode'] = wp_kses($_REQUEST['dbem_zipcode'], array());
       	    }
       ```
   
 * to em-booking-table.php:
 *     ```
       'dbem_zipcode'=>__('Zipcode','dbem'),
       ```
   
 * and:
 *     ```
       }elseif($col == 'dbem_zipcode'){
       				$cols[] = esc_html($EM_Booking->get_person()->zipcode);
       ```
   
 * to em-person:
 *  `<tr><th><?php _e('Zipcode','dbem'); ?> : </th><td><?php echo esc_html($this-
   >zipcode); ?></td></tr>`
 * It just doesn’t show the value of Zipcode in my plugin and in the excel…
 * I know the pro version will take care of this. But I need it in the free version
   because of low budget. AND I can learn new stuff:)
 * Hope you can help!
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [VersGemerkt](https://wordpress.org/support/users/stilld/)
 * (@stilld)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-extra-form-option/#post-5642191)
 * I actually fixed it myself…! I don’t know how, but I did it:D

Viewing 1 replies (of 1 total)

The topic ‘Adding extra form option’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [adding](https://wordpress.org/support/topic-tag/adding/)
 * [Excel](https://wordpress.org/support/topic-tag/excel/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [zipcode](https://wordpress.org/support/topic-tag/zipcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [VersGemerkt](https://wordpress.org/support/users/stilld/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/adding-extra-form-option/#post-5642191)
 * Status: resolved