Help please - How to validate from 2 possible answers


Posted on 16th Feb 2014 07:03 pm by admin

Hi

I hope somebody can help me with what will probably be really simple, I'm pulling my hair trying to get my head round it.

I've got a contact form and I would like to add to it a couple of simple human check questions like "what is 1 + 1?". I've got it to work with the answer being '2' but what i would like to do is have it also validate if the visitor enters 'two'.

This is how I did it for just the number '2'

Code: [Select]if (Trim($Human_check_1)!="2") $validationOK=false;
Could somebody please tell me how I can code it so "if Human_check_1 is equal to '2' or it is equal to 'two' the validation is true"

Thanks

No comments posted yet

Your Answer:

Login to answer
105 Like 41 Dislike
Previous forums Next forums
Other forums

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

2013 Uusi ! Moncler FEDOR Kiinnostavat toppatakit Miesten Musta - €257.61 : Professional Moncler untuvatakki Outlet Store, jakkedanmark.org
moncler naisten takki
vertaa moncler naisten takki
[b][url=http://www.jakkedanmark.org/fi/mo

Patek Philippe 5207P-001 - Platinum - Mannen Grand Complications - €231.57 : replica patek Philippe Horloges , calatravapatekwatches.top
[b]Patek philip[/b] [b][url=http://www.calatravapatekwatches.top/nl/een-kopie-van-het-patek-horloge-

Bijoux Cartier
[b][url=http://www.mycartieronline.com/fr/]cartier roadster[/url][/b] [b][url=http://www.mycartieron

Alta migliore qualità Swiss Replica Patek Philippe orologi , acquistare facilmente le imitazioni perfette di Patek Philippe orologi .
swiss replica orologi aaa +
Orologi svizzeri replica
[b][url=http://www.brandwatches.com.cn/

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS