Page 1 of 1

How to make a email form send copy?

Posted: Thu May 22, 2003 3:57 pm
by Gollum_
Hello!
First time in this forums...

I have a mail- form like the ordniary mail(), but if the one who send me a email want's a copy of it - how should i do that?

Is it possible to do this with a checkbox?

Thanks :)

Posted: Thu May 22, 2003 5:24 pm
by phice
Make sure they put in their email, and put in a checkbox on the form.

Code: Select all

<input type="checkbox" name="check_box" value="Yes">
From that, you'd do:

Code: Select all

<?php
if($_POST["check_box"] == "Yes")
  mail(); // Mail a copy to their address
?>
Hope this helps!

Posted: Thu May 22, 2003 6:21 pm
by Gollum_
Thanks for fast reply :D I works great now!