How to alter the information stored in the databse
-
Hello and thanks for the great plugin. Setup was simple and the results were great except for one small thing.
Note: My PHP skills don’t go much farther than spelling it correctly and I haven’t done any programming in over 25 years!
In contact form 7 I have a select field named Station which contains various locations that are named in a manner that will be familiar to the user. Following the location is the pipe character (“|”) and the email addresses associated with the location.
My goal it to make the entry as fool proof as possible allowing the user to select the location without knowing which email is associated with the location.
Contact form 7 strips the data before the pipe leaving only the email address, which is used to email the form to the location, but the data added to the database is also stripped of everything but the email address.
I could settle for the entire string being stored, but in a perfect world it would only store the data before the pipe.
The TL;DR version:
Contact Form 7 select options-
“location1|email1”
“location2|email2”
“location3|email3”Contact Form 7 outputs and Database Extension stores-
email1
email2
email3What I would like to be stored in the database-
location1
location2
location3I hope that makes sense and this old guy would appreciate any help anyone is able, or willing, to provide!
https://www.ads-software.com/extend/plugins/contact-form-7-to-database-extension/
- The topic ‘How to alter the information stored in the databse’ is closed to new replies.