473,785 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing values to PHP script via check boxes.

1 New Member
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 2865
ak1dnar
1,584 Recognized Expert Top Contributor
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 Recognized Expert Specialist
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 Recognized Expert Contributor
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@d omain.com" checked> email1@domain.c om[/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 Recognized Expert Expert
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
3532
by: Xerxes | last post by:
Hi, how can I pass the returned value from Javascript to PHP? I have: ------------------------------------------------------------------------ ------ if ( x>y) {
2
2819
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 products ordered by a certain company. Along with those values, I'm creating a text box at the end of each record that a user may or may not enter in an estimated delivery date. If the user does enter in a date I want that row of data submitted to a...
2
7425
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 problem is sending the information which is checked through to the next page. Each of my checkboxes is given the value of what should be inserted in the table and into the email. I just need a way of determining which checkbox is checked so I can...
2
27295
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 language="JavaScript"> function myFunction(this){ entry=document.Forms.this.value; if (document.Forms.this.value==""){
1
2288
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 each row, and put the total at the end of the row. What is the javascript to sum the values to a few text boxes, and how would I write the script for these totals to run all at once? Thanks.
4
1660
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 display button next to them. Everytime I execute this form (i.e., select from listboxes and click on the display button), I want call the same "example.php" script with the
0
1057
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 a single memo field in an Oracle db. The functionality of the .hta is working, but I'm having troublefiguring out how to pass the text to the db. I need to have abutton "Return Values to HEAT" that will take the values enteredinto the text boxes...
6
1481
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 swipes the card, I want to fill out the fields automatically and make them read only. (So far I can do this.) But I also want a checkbox to appear that indicates the card was swiped. The user can clear the checkbox, re-enabling the fields so...
1
1446
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" value="<?=$rowSubjectsx?>"> My text boxes are also moving in a loop <input type="text" name="quantity" id="quan" size="3"/> I want to show respective check boxes subjects and quantity to another page Please help.......
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5379
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.