Reply to Re: Form emails

Your name:

Reply:


Posted by Brendan Gillatt on 07/02/07 18:38

On Mon, 2 Jul 2007 14:47:42 +0100, "Geoff" <someone@home.uk> wrote:

>I want to create an on-line form & into one of the text boxes the visitor
>will enter his email address. So far so good. However, when that form is
>emailed to me, I want that email address to appear in the "From" field of
>the email. I know this cannot be done in HTML because the variable cannot
>be transferred across pages, but can it be done in PHP? Or is there
>another way of achieving it?
>
>Any advice much appreciated and if there are any sample scripts anywhere,
>even more appreciated.
>
>Geoff
>

$from = $_POST['emailaddress'];

$to = 'someemail@aol.com';

$subject = $_POST['subject'];

mail($to, $subject, $msg, "From: $from\n");
--
Brendan Gillatt
www.brendangillatt.co.uk
GPG: 0x6E265E61

[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

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