473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Passing values to PHP script via check boxes.

Looking for some help with an email form using php.

I am using check boxes in a html form, the values of check boxes are email addresses.
The person visiting our site has the ability to select one or more check boxes.
The values (email addresses) need to be passed on to the php script which in return sends mails to each of the selected emails. (selected addresses only)
The script should also send an email to myself!

Your help.... would be much appreciated, I am an absolute PHP beginner!!

Kia Ora from NZ
Jun 12 '07 #1
4 2848
ak1dnar
1,584 Expert 1GB
Looking for some help with an email form using php.

I am using check boxes in a html form, the values of check boxes are email addresses.
The person visiting our site has the ability to select one or more check boxes.
The values (email addresses) need to be passed on to the php script which in return sends mails to each of the selected emails. (selected addresses only)
The script should also send an email to myself!

Your help.... would be much appreciated, I am an absolute PHP beginner!!

Kia Ora from NZ
Hi Kia Ora,
Welcome to TSDN!

Please submit the HTML form and php mail script(if any).
Jun 13 '07 #2
Motoma
3,237 Expert 2GB
Have you taken a look at the mail() function? Have you written any code to try this?

Please post what you have already (even if it isn't much) and we will do our best to give you guidance.
Jun 13 '07 #3
nathj
938 Expert 512MB
My first thought, based on limited information is that you can set the value of the check box so that when it is clicked the value you read out is the email address you are after.
For example
[HTML]<input type="checkbox" name="email1" value="email1@domain.com" checked> email1@domain.com[/HTML]

This can then be read using php in the form destination (as stated uder action="":
[PHP]
$_REQUEST['email1']
[/PHP]

Based on the info you gave I think this might help you out. If not post some code or let us know how you resolved the problem

Nathan
Jun 14 '07 #4
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem.
Jun 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Xerxes | last post by:
Hi, how can I pass the returned value from Javascript to PHP? I have: ------------------------------------------------------------------------ ------ if ( x>y) {
2
by: Renie83 | last post by:
Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not helped! What I have is a page that brings in...
2
by: Renie83 | last post by:
What I have are two pages. One is a form with some input boxes and check boxes on it. It is posting to a different script page that inserts into a database and sends the fields through email. My...
2
by: Ed | last post by:
I need to know how to pass variables because I want to use the same function to varify multiple data imput boxes. Please tell me what's wrong with this code. <head> <script...
1
by: Frank | last post by:
I have a large form, that has text boxes of numbers in rows and columns. I need to sum the values in the columns, and put the total at the bottom of the column. But I also need to sum the values in...
4
by: Hemanth | last post by:
Hello, A novice question.... I've a script that uses GET method and is called with two parameters (example.php?arg1=val1&arg2=val2). This script outputs a html form with two list boxes and a...
0
by: Guest | last post by:
I'm working with a .hta file that uses javascript to produce 3checkboxes. If any checkbox is checked, a corresponding text boxappears. I'd like to be able to pass the data entered in thetext boxes to...
6
by: Jerry Camel | last post by:
Basic Web Form... A few text boxes and a checkbox - and a card reader... The effect I want to accomplish is this: The basic credit card fields are there and can be filled out. But if the user...
1
by: goutam12345 | last post by:
Hello experts, Please help.... My checkboxes are not passing respective textboxes values to another page My checkboxes are moving in a loop <input type="checkbox" name="chkID" id="chkID" ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.