Hello I am working on php website. Now here im working on sending orders. So once it is ordered the confirmation e-mail goes to one who ordered(he enters his e-mail id manually) and the head of the department(e-mail ids written in code).
But now I have put a checkbox that if the person is head of the department he checks the checkbox and e-mail should be sent to him. So how to verify this by checkbox.Can anyone please help me with this. The person should not get 2 e-mails.
I hope I was clear in explaining my doubt. If not please do ask me for more explanation.
Thank you.
Javitri
0
Newbie Poster
Recommended Answers
Jump to PostHopefully I'm understanding you right, but it seems that a simple solution would be to have your form processing script check whether the box was checked and deal with it through an if then statement.
So if the checkbox in your form is called "department_head_checkbox" and it has a …
Jump to PostYup :)
Jump to PostI'm not sure I'm completely understanding the way your processing is supposed to work. You should be able to include a statement that evaluates whether a department head's box has been checked, but I don't know the names of your form values, so would you mind posting the code for …
Jump to Postgood thought i will try
All 14 Replies
TySkby
41
Junior Poster
Javitri
0
Newbie Poster
TySkby
41
Junior Poster
Javitri
0
Newbie Poster
Javitri
0
Newbie Poster
TySkby
41
Junior Poster
1arunseo
0
Newbie Poster
Javitri
0
Newbie Poster
TySkby
41
Junior Poster
Javitri
0
Newbie Poster
TySkby
41
Junior Poster
Javitri
0
Newbie Poster
Javitri
0
Newbie Poster
Javitri
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.