Checkbox FormMailer help!!!
Moderator: General Moderators
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am
Checkbox FormMailer help!!!
Hi guys,
Ive got this problem and i have no idea how to fix it. Ive been trying to do it in PERL, but thats not my strong point, and i know a lot more PHP than perl. But still dont know enough to try and achive what i want to do.
Basically i am trying to have a web form in which the company fills out the form and can select which people to send the form to.
http://www.ekayadvertising.com/Intranet ... _Form.html
Above is the example form.
So the form will ONLY be sent to those that checkboxes have been ticked...... Also it would be great if i could have a CC or a BCC option too, so the similar effect, when someone gets CC'ed in on an e-mail the other CC or BCC options that arnt ticked dont get CC'ed in on the E-mail.
Hope i am making sense, if anyone could clear this up for me i will love you for ever.
Thanks again
Danny
Ive got this problem and i have no idea how to fix it. Ive been trying to do it in PERL, but thats not my strong point, and i know a lot more PHP than perl. But still dont know enough to try and achive what i want to do.
Basically i am trying to have a web form in which the company fills out the form and can select which people to send the form to.
http://www.ekayadvertising.com/Intranet ... _Form.html
Above is the example form.
So the form will ONLY be sent to those that checkboxes have been ticked...... Also it would be great if i could have a CC or a BCC option too, so the similar effect, when someone gets CC'ed in on an e-mail the other CC or BCC options that arnt ticked dont get CC'ed in on the E-mail.
Hope i am making sense, if anyone could clear this up for me i will love you for ever.
Thanks again
Danny
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Have a look at http://www.swiftmailer.org and read over the documentation. The tutorials (the form one especially) should get you started.
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
What have you written besides the form? Are you familiar with mail()? You're basically going to compile the checked email addresses and add them to the cc and bcc headers respectively.
d11: he's well clear of the 24 hour period
d11: he's well clear of the 24 hour period
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am
sorry about the bump....... wont do again....
The thing is...... i dont know what im doing....... BUT i do understand what i need to do if that makes sense...
I need a script that collects the ticked vales from the checkboxs which will then populate those vales into the formmail script. CORRECT????
but i dont know how to right the script A) for the checkboxs and B) to implelment that into the formmail script.!!!! see my problem. i just dont know enough lol
Any extensive help would be really appreciated!
Thanks
The thing is...... i dont know what im doing....... BUT i do understand what i need to do if that makes sense...
I need a script that collects the ticked vales from the checkboxs which will then populate those vales into the formmail script. CORRECT????
but i dont know how to right the script A) for the checkboxs and B) to implelment that into the formmail script.!!!! see my problem. i just dont know enough lol
Any extensive help would be really appreciated!
Thanks
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Read about form handling -- again, checkboxes are either set to "on" or "off" in $_POST. Build a string of those email addresses that were set to "on", and add them to the bcc or cc header when you call mail()
-
dandaman2007
- Forum Newbie
- Posts: 8
- Joined: Tue Apr 17, 2007 10:34 am