Hello Bob,
I have read FAQ 31 and other forum questions but there is no answer to the following so far.
I am evaluating your software and unfortunatelly do not know much neither about CF nor about PHP. So far I am very impressed but there is an immediate issue I need to solve, and it is to send the content of my form to a specific email address based on criteria condition which could be hardcoded on my php code.
In other words, there are 5 people who will take care of the applicant based on the College criteria which is its ZipCode,City,EmailsCounter:
Something like:
if zipcode=xxxx1 and city=A and EmailsCounter then UseEmailaddress= [email]representative1@domain.com[/email]
if zipcode=xxxx2 and city=A and EmailsCounter then UseEmailaddress= [email]representative2@domain.com[/email]
if zipcode=xxxx3 and city=C and EmailsCounter then UseEmailaddress= [email]representative3@domain.com[/email]
I thank you for your reply.
PD+
Hi pipodyer,
Basically the FAQ #31 code is what you need plus some extra PHP to handle the conditions.
What happens if EMailsCounter is not set?
Bob
Hello Bob,
Thanks for your quick reply.
I have reviewed the code and certanly the login does not seem to apply to my case, can you please provide me with a sample code so I can apply it to my particular problem?
I hope this is not too much to ask.
Thanks in advance.
PD.
Hi pipodyer,
How much code gets written here depends on a whole bunch of things. [list]
How busy I am (or bored with what I'm doingHow busy the forum is, if there are 2 or 3 posts a day then I have more time; if, as at the moment, there are 20-30 then just taking a few minutes on each can easily take an hour or two in the day when I could be working on other client stuff that pays the bills.Whether the code is already here many timesWhether I have a code example of my own that I can useDo I think that this code is going to be useful to many other readers (or is it a very narrow application)Does the problem pique my curiosity - or is it similar to something that I've answered many times before.Whether the poster has already 'had a go', checked the forum & FAQs and maybe tried some code that doesn't work.It helps if the poster reads my questions and answers them, most people do, some seem to change the subject or answer something completely different.At some level if the poster seems friendly and polite. I don't deliberately discriminate but I'm sure that at some level I respond better to 'I have a problem, can you help fix it' than I do to 'ChronoForms is broken and doesn't do what I want'. (And yes I do know that many people here are not native English speakers and I try to remember that.)[/list]I'm sure that there are others too.
None of these may apply to your request; I just thought I'd answer your general question as I'm sure that other people have the same thought.
Bob