My website is a directory of wedding vendors. Each vendor is assigned to a particular category ie: photographers, caterers, florists, etc.
I currently have a form that allows visitors to request additional information from the vendors and they select what categories, via checkboxes, of vendors they would like information from. In other words if a visitor wanted information from photographers and florists, they would checkbox photographers and florists.
The submitted form is sent to the administrator and is then simply "redirected" via email to ALL the vendors, regardless of what categories were selected. This is not an ideal situation.
I was wondering if there would be a way to have some logic here, that would send the submitted form only to the vendors in each selected category and not send the form to anyone else. I can't get my head around this.
I guess it would be somewhat like using multiple WP custom fields, each of which would hold the email addresses of each category of vendors. Somehow this would be tied to what checkboxes were selected and ultimately, when the form is submitted, it would only go to the vendors that are in the category(ies) that had been selected via checkbox.
Is this making sense?