sending email to different recipients via variable
Your extensions work great. I have built a simple submission form requiring name, email address and a location from a dropdown menu (a US state: strcmp). I would like to send the completed form to a different recipient depending on which state(s) are chosen - as if to different sales reps in different regions.
Can anyone tell me how to correctly do this? I think I know how conceptually, but I can't get the syntax right.
I've tried a few ways involving a switch statement, but I don't have it right.
The send method is "POST".
I've attached a PDF of the code.
Any help will be appreciated.