You are here: Re: php form problem « PHP Language « IT news, forums, messages
Re: php form problem

Posted by Markus G. Klφtzer on 11/20/57 11:26

"Neil McDermott" <neil.mcdermott@easiserv.com> wrote:

> $email=$_POST['email'];
> $query=$_POST['query'];
> $to="enquiries@mysite.co.uk";
> $from="$email";

there is the problem ....

$from="website@mysite.co.uk";

then the $email should be somewhere in the body of the message.

If you want to be able to respond automatically to any enquiries
(ie click on reply) you might want to fill the reply-to[1] header with
their email address .... AFTER checking that it is only a single line
and not a header-inject with bcc

hth

mgk

Fußnoten/Footnotes:
===================

[1] the difference between the from and reply-to header is that some MTA
will block an invalid From, something that invariable happens if
people type in email addresses (somebody@freeserve.ocm)
--
Experience is the hardest kind of teacher.
It gives you the test first,
and the lesson afterward.

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация