Reply to Re: help with form field validation

Your name:

Reply:


Posted by Nilesh on 05/29/07 07:57

On May 29, 6:22 am, hmlarson <hlar...@gmail.com> wrote:
> hello,
>
> i am trying to validate a form field ... requiring the user to enter 1
> of 2 possible security codes (for example 1000 or 9975).
>
> this part of my code does not seem to working - it gives the error
> message when I enter the correct security code(s).
>
> if ($_POST['security_question'] != 1000 || 9975) {
> $errors[]= 'You have entered an incorrect security code.';
>
> }
>
> any tips on handle this? i am somewhat new to php - any info is much
> appreciated. thanks

u can also use mysql db for validating security codes if u hv many. if
u want its code, then tell me.

[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

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