You are here: Re: Send form to email in url « PHP Programming Language « IT news, forums, messages
Re: Send form to email in url

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]


Удаленная работа для программистов  •  Как заработать на 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

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