This is a discussion on "[SOLVED] Form to email script with checkboxes" within the PHP Forum section. This forum, and the thread "[SOLVED] Form to email script with checkboxes are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Form to email script with checkboxes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Form to email script with checkboxes
I have created a consultation request form which has mostly text fields, a few radio buttons and two somewhat large areas of checkboxes.
I have almost finished with the php script to send the results of the form to email. My problem is dealing with the checkboxes. They are not grouped, like the radio buttons, so I assume that they can't be grouped in the e-mail? Ideally I would like to have only the checked boxes come through on the email. And, ideally, these checked boxes would be in the two groups. Can anyone steer me in the general direction of how to go about this? (Both parts - the "checked only" and/or the "grouped") I have scoured this site and the internet in general with no luck. Yes, I am very new to this and I really appreciate your help! Thanks! |
|
|
|
#2
|
|||
|
|||
|
Re: Form to email script with checkboxes
Well, for the checkboxes to come through the email, you would need to GET them first. Like this:
Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Form to email script with checkboxes
Wonderful -- thank you so much!
I'm sorry if this is a foolish question, but can I assume that when I group the checkboxes like this, only the "checked" boxes will be posted? Or do I need to add an "if" statement to only post the boxes selected by the viewer? Again, sorry if that should be obvious. I think maybe I was making this harder than it needed to be. Thanks! |
|
#4
|
|||
|
|||
|
Re: Form to email script with checkboxes
Checkboxes will only be emailed if they're checked. No "if" statement required!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Form to email script with checkboxes
Yeah! Thanks so much!
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Saving values from checkboxes into MySql | karinne | PHP Forum | 7 | Jan 26th, 2008 16:58 |
| [SOLVED] sending email once form submitted | Emzi | PHP Forum | 5 | Nov 21st, 2007 14:25 |
| [SOLVED] Form Submit To Email | longstand | PHP Forum | 17 | Nov 13th, 2007 13:16 |
| [SOLVED] Email Submit Form Problem, The tutorial From The Php Forum | longstand | PHP Forum | 3 | Nov 12th, 2007 20:06 |
| [SOLVED] Form to email with checkbox | itsdesign | PHP Forum | 4 | Oct 29th, 2007 00:57 |