Reply to Re: Check box question

Your name:

Reply:


Posted by Rik on 04/25/07 21:04

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!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация