|
Posted by Noodle on 07/30/06 05:02
phillipmcgough@charter.net wrote:
> I need to know how I can have a form sent to an email that is in a URL.
>
> For example:
> If I have a site with a form that has
> First Name:
> Last Name:
> Email:
> Phone:
>
> in it, and a person goes to www.test.com/?email@emailaddress.com (or
> something like that)then I need the form results to go to that email
> address in the URL.
>
> If a different person has a person go to the same URL but uses a
> different email address, then the results of the form need to go to
> that email address.
>
> I also want it to send it without opening up a seperate email program
> (outlook, etc.)
>
> Hope this make sense.
>
> Thanks!
<?php
mail($_REQUEST['email'], 'my subject', 'the message');
?>
See http://au2.php.net/function.mail
Navigation:
[Reply to this message]
|