Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

pho form processing not working

Guest
Oct 09, 2008 Oct 09, 2008
Hi,
I had to alter my perfectly working php script coz easyspace decided to implement some spam controls.. they told me to insert a -f argument which I did, but now my form doesn't work. If anyone's got any ideas please help!!!

TOPICS
Server side applications
307
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 09, 2008 Oct 09, 2008
Lou28 wrote:
> Hi,
> I had to alter my perfectly working php script coz easyspace decided to
> implement some spam controls.. they told me to insert a -f argument which I
> did, but now my form doesn't work.

Either the instructions provided by easyspace were badly written, or you
didn't implement them correctly. The antispam measures used by an -f
argument are intended to ensure that the email comes from an authorized
source, so you cannot use the value entered in the email field of an
online form. It *must* be your email address. Moreover, it must be the
fifth argument to mail(). You have used it as the third argument.
Moreover, you have omitted the $subject argument to mail.

Change thisL

> if(mail($to, $body, '-f'.$sender))

to this:

if (mail($to, 'Message from online form', $body, null,
'-flouisa@cdteam.co.uk'))

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 09, 2008 Oct 09, 2008
LATEST
Brilliant! Thank you, you're a star.

🙂
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines