Page 1 of 2
Checkbox FormMailer help!!!
Posted: Tue Apr 17, 2007 10:36 am
by dandaman2007
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
Posted: Wed Apr 18, 2007 2:45 am
by dandaman2007
BUMP!!
Posted: Wed Apr 18, 2007 2:51 am
by Chris Corbyn
Way too soon to bump. There's a 24 hour period in our bumping rules. Don't do that again.
Posted: Wed Apr 18, 2007 2:52 am
by Chris Corbyn
Have a look at
http://www.swiftmailer.org and read over the documentation. The tutorials (the form one especially) should get you started.
Posted: Wed Apr 18, 2007 2:53 am
by aaronhall
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
Posted: Wed Apr 18, 2007 2:57 am
by Chris Corbyn
aaronhall wrote:d11: he's well clear of the 24 hour period
Tue Apr 17, 2007 3:36 pm -> Wed Apr 18, 2007 7:45 am
16 hrs, 9 mins.
Posted: Wed Apr 18, 2007 2:59 am
by dandaman2007
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
Posted: Wed Apr 18, 2007 3:00 am
by aaronhall
d11wtq wrote:aaronhall wrote:d11: he's well clear of the 24 hour period
Tue Apr 17, 2007 3:36 pm -> Wed Apr 18, 2007 7:45 am
16 hrs, 9 mins.
I'm seeing Tue Apr 17, 2007 8:36 am -> Wed Apr 18, 2007 12:45 am
Posted: Wed Apr 18, 2007 3:01 am
by dandaman2007
to be fair tough i posted the original thread at Tue Apr 17, 2007 10:36 am, and its no Wed Apr 18, 2007 09:00 am
Only just inside the 24 mark lol
Posted: Wed Apr 18, 2007 3:01 am
by dandaman2007
looks like we all have differnet times lol
Oh well, back to the problem lol
Posted: Wed Apr 18, 2007 3:02 am
by aaronhall
You don't need to use formmail in PHP; check out
mail(). POST values are available in the $_POST array, and checked boxes are set as "on".
Posted: Wed Apr 18, 2007 3:08 am
by dandaman2007
so is that PHP script there is replace the formmail script i am currently calling????
if so, how do i then use the checkbox scenario with it?
Posted: Wed Apr 18, 2007 3:19 am
by aaronhall
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()
Posted: Wed Apr 18, 2007 3:28 am
by dandaman2007
thanks for the reply,
BUT..... i dont know how to do ANY of that lol
Ill read it again thoroughly and try and do something.
Thanks
Posted: Wed Apr 18, 2007 3:31 am
by aaronhall
The manual entry and tutorial should pretty much cover all of it. Any questions, come on back.