# I have made a simple php form

**URL:** <https://forum.kirupa.com/t/i-have-made-a-simple-php-form/332349>\
**Category:** programming\
**Created:** [May 5, 2014, 12:06pm UTC](https://forum.kirupa.com/t/i-have-made-a-simple-php-form/332349 "2014-05-05T12:06:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marscovista](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@Marscovista](https://forum.kirupa.com/u/Marscovista)\
**Post date:** [May 5, 2014, 12:06pm UTC](https://forum.kirupa.com/t/i-have-made-a-simple-php-form/332349/1 "2014-05-05T12:06:16Z")

</div>

I have made a simple php form for a website wherein someone fills in their name, mail and message. It works. However since I get the value that is the sender’s mail I want to give them a choice of getting a copy (or not) - perhaps a checkbox they can tick if they want this. However (I’m new to this) I can’t figure out how get this. I’m thinking it should be simple using isset to say “if it’s ticked” send mail to the user “$mail” as well as to myself? Headers? dunno.

You can see my attempt at [mail.marscovista.co.uk](http://mail.marscovista.co.uk)

Thanks to anyone who can help!
