473,386 Members | 1,754 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,386 software developers and data experts.

Check box question

Hi every body,
I have a small question regarding check box and mail() forms.

I have a mail() form on my website and I want to add to it a check box
that if checked the user get a copy of the data he sent and if not
check the mail is sent to me only please help me doing this because I
have tried how to figure it out but I couldnt and the problem is that
am not a really good php developer am just a beginer.

Thanks for all your help in advance
shror
www.s7els7.com

Apr 25 '07 #1
2 2219
Rik
shror wrote:
Hi every body,
I have a small question regarding check box and mail() forms.

I have a mail() form on my website and I want to add to it a check box
that if checked the user get a copy of the data he sent and if not
check the mail is sent to me only please help me doing this because I
have tried how to figure it out but I couldnt and the problem is that
am not a really good php developer am just a beginer.
An HTML checkbox will be either posted when checked, or not when unchecked.

So, if it's name is 'copy_to_client', you could:

if(isset($_POST['copy_to_client'])){
//mail the sender
}

I'd advise against it though. It makes it far to easy to spam people if
they enter other adresses.

--
Rik Wasmus

Estimated date being able to walk again: 01-05-2007.
Less then a week, hurray!
Apr 25 '07 #2
On Apr 25, 11:04 pm, Rik <luiheidsgoe...@hotmail.comwrote:
shror wrote:
Hi every body,
I have a small question regarding check box and mail() forms.
I have a mail() form on my website and I want to add to it a check box
that if checked the user get a copy of the data he sent and if not
check the mail is sent to me only please help me doing this because I
have tried how to figure it out but I couldnt and the problem is that
am not a really good php developer am just a beginer.

An HTML checkbox will be either posted when checked, or not when unchecked.

So, if it's name is 'copy_to_client', you could:

if(isset($_POST['copy_to_client'])){
//mail the sender

}

I'd advise against it though. It makes it far to easy to spam people if
they enter other adresses.

--
Rik Wasmus

Estimated date being able to walk again: 01-05-2007.
Less then a week, hurray!
I agree with you that this could be used to spam people but what could
be the other solution of this thing I already have started looking for
a way to use the CAPTCHA security system with using a picture but I
really dont know how to use it how to insert it to be working with my
mail() form and I also think that the CAPTCHA is not effective with
the copy_to_client checkbox so please if anybody know how to solve
this problem for me I appreciate

shror
www.s7els7.com

Apr 27 '07 #3

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

Similar topics

3
by: Mohammed Mazid | last post by:
Hi folks! Can anyone please help me with this? I am developing a Quiz program but I am stuck with "multiple answers". Basically I need some sort of code that would select multiple answers...
4
by: Mohammed Mazid | last post by:
Hi folks! Can anyone please help me with this? I am developing a Quiz program but I am stuck with "multiple answers". Basically I need some sort of code that would select multiple answers...
27
by: John Roth | last post by:
PEP 263 is marked finished in the PEP index, however I haven't seen the specified Phase 2 in the list of changes for 2.4 which is when I expected it. Did phase 2 get cancelled, or is it just not...
4
by: Jared | last post by:
Radio Button or Check Box and Event Procedures I need to insert either radio buttons or check boxes onto my form. I'm not sure which to use, or if there are other options. I am using the buttons...
0
by: Douglas Gage | last post by:
Hi every one I'm building datagrid which needs to have validiation check for each text box. Something will look like this Question Answer 1 abc validiation...
4
by: Laphan | last post by:
Hi all In my functions I'm using a double-check all the time to trap if a value has nothing in it and my question is do I need this double-check. My check line is: IF IsNull(xxx) OR...
6
by: tommaso.gastaldi | last post by:
Hi, does anybody know a speedy analog of IsNumeric() to check for strings/chars. I would like to check if an Object can be treated as a string before using a Cstr(), clearly avoiding the time...
1
by: huyuhui | last post by:
The following is a question of LOAD utility. Question: How does the DB2 enforce table check constraints for data added to table with the LOAD utility? A. With the BUILD phase of LOAD B. With the...
2
by: anget24 | last post by:
I am working on a form in access and I want my check boxes to move with the next question and eveytime i answer the question and move to the next question my check box stays checked and all I want it...
173
by: Marty James | last post by:
Howdy, I was reflecting recently on malloc. Obviously, for tiny allocations like 20 bytes to strcpy a filename or something, there's no point putting in a check on the return value of malloc....
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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,...
0
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...

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.