473,473 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP checkboxes

How do I send CHECKBOXES via email through the mail() function in PHP?

Example: You have 67 checkboxes, all with unique names, but only want
to send the ones that were checked.

Mailer: Verifies only 2 of those 67 were checked, so the email only
has 2 checkboxes checked.
Jul 16 '05 #1
4 4868
I noticed that Message-ID:
<fb**************************@posting.google.com > from
ph**********@hotmail.com contained the following:
How do I send CHECKBOXES via email through the mail() function in PHP?

Example: You have 67 checkboxes, all with unique names, but only want
to send the ones that were checked.

Mailer: Verifies only 2 of those 67 were checked, so the email only
has 2 checkboxes checked.


Name them sequentially ie 1,2,3...67 and then use a loop to check if each
one exists. If it does, include it in the mail.

--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 16 '05 #2
ph**********@hotmail.com wrote:
How do I send CHECKBOXES via email through the mail() function in PHP?

Example: You have 67 checkboxes, all with unique names, but only want
to send the ones that were checked.

Mailer: Verifies only 2 of those 67 were checked, so the email only
has 2 checkboxes checked.

Why would you need to have a checkbox in the email anyway? Wouldn't an
indication that something was checked be better?

Using form elements in a html email doesn't seem neccessary, where you
could easily use plain text.

Like the other poster suggested though for what to include.
Jul 16 '05 #3
I noticed that Message-ID: <xn0d3ainv1zz99j003rarextreme@workstation> from
powerboy contained the following:
Why would you need to have a checkbox in the email anyway? Wouldn't an
indication that something was checked be better?

Using form elements in a html email doesn't seem neccessary, where you
could easily use plain text.


I assumed he meant checkbox values.

Only spammers send mail in html don't they? ;-)

--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 16 '05 #4
Geoff Berrow <$b**@ckdog.co.uk> wrote in message news:<2p********************************@4ax.com>. ..
I noticed that Message-ID: <xn0d3ainv1zz99j003rarextreme@workstation> from
powerboy contained the following:
Why would you need to have a checkbox in the email anyway? Wouldn't an
indication that something was checked be better?

Using form elements in a html email doesn't seem neccessary, where you
could easily use plain text.


I assumed he meant checkbox values.

That's exactly what I meant

If you have the option to check:

Cookie, Cake, Candy, Beef, Pasta, Sauce

And someone checked

Cookie

Cake

and Candy

then the Email would say:

THEY WANT: Cookie, Cake, Candy

But it wouldn't mention any of the others.
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pete | last post by:
There is a Summary/Example further down... On page one of my site I have a form with some checkboxes and detailed descriptions. When the form is submitted (to page two), the values of the...
8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
8
by: Ralph Freshour | last post by:
I have multiple checkbox's created with an array name because I have many on the same web page - their names are like: frm_chk_delete frm_chk_delete frm_chk_delete frm_chk_delete etc. Here...
5
by: @(none) | last post by:
I have a page which is a set of CheckBoxes generated daily and thus the number of Checkboxes changes each day. What I want to do is allow the user to select one or more checkboxes and the push a...
6
by: terence.parker | last post by:
I currently have the following JS in my header: function checkall(thestate) { var checkboxes=eval("document.forms.EssayList.file_id") for (i=0;i<checkboxes.length;i++)...
2
by: john | last post by:
I posted this question to comp.lang.javascript but didn't get a response, so I'll try here. I am using ASP.NET and I have a datagrid. One of the columns in my grid is all checkboxes. When the...
10
by: rn5a | last post by:
All the rows in a DataGrid, including the Header, are accompanied with a CheckBox. I want that when the CheckBox in the Header is checked, then all the CheckBoxes should automatically get checked....
5
by: masterej | last post by:
Developers, Is there any way to disable all checkboxes on a form? I have a form with 160 checkboxes and I want to be able to disable all of them. Is there a way I can do something like this: ...
8
by: PeteOlcott | last post by:
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_change_structure.html I would like to completely understand how GUI controls such as this one are constructed. In the...
7
by: viki1967 | last post by:
I need one function javascript that: 1) when I enter in this htm page I see enabled only checkbox of categories A, M and T; checkboxes of microcategories all disabled; 2-a) If I select the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.