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

Posted by Geoff Berrow on 09/08/05 19:09

I noticed that Message-ID:
<dfpk5l$hkd$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com> from Neil McDermott
contained the following:

>I do have javascript validation on the form but it only checks that the
>email is whatever@something.com. I also have it on the phone field to make
>sure it is a number.

Phone numbers are not numbers. How does it handle +44 1782 111111 or
01782 111111

>How then has someone sent an email address in the phone
>field?
They just turn Javascript off.
>
>Also re
>
>You can do something fairly simple to make sure the form is submitted
>from the site where it resides:
>if (!strstr($_SERVER['HTTP_REFERER'], 'mysite.co.uk')) {
> exit ("Invalid referrer");
> }
>
>Where does this go in the script?
At the beginning.

--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

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

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