Check box question

This is a discussion on Check box question within the PHP Language forums, part of the PHP Programming Forums category; Hi every body, I have a small question regarding check box and mail() forms. I have a mail() form on ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-25-2007
shror
 
Posts: n/a
Default 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

Reply With Quote
  #2 (permalink)  
Old 04-25-2007
Rik
 
Posts: n/a
Default Re: Check box question

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!
Reply With Quote
  #3 (permalink)  
Old 04-27-2007
shror
 
Posts: n/a
Default Re: Check box question

On Apr 25, 11:04 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> 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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0