Title: Splitting piped values
Last modified: January 21, 2019

---

# Splitting piped values

 *  [dngood](https://wordpress.org/support/users/dngood/)
 * (@dngood)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/splitting-piped-values/)
 * Hi. I have followed the instructions on [https://cfdbplugin.com/?page_id=804](https://cfdbplugin.com/?page_id=804)
   to split piped fields in ContactForm. Testing shows that it’s almost working –
   I see the field split as expected in cfdb, however, the value that it’s giving
   is incorrect.
 * For example, I have something like:
 * location1|email1@nowhere.com
    location2|email2@nowhere.com location3|email3@nowhere.
   com location4|email1@nowhere.com location5|email2@nowhere.com
 * (note the repetition in use of the email addresses – which I think may be the
   problem).
 * When the user submits location5, cfdb incorrectly shows “location2”. How can 
   I adapt the code on [https://cfdbplugin.com/?page_id=804](https://cfdbplugin.com/?page_id=804)
   to make it work for this scenario?

The topic ‘Splitting piped values’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

## Tags

 * [pipes](https://wordpress.org/support/topic-tag/pipes/)
 * [split](https://wordpress.org/support/topic-tag/split/)

 * 0 replies
 * 1 participant
 * Last reply from: [dngood](https://wordpress.org/support/users/dngood/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/splitting-piped-values/)
 * Status: not resolved