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

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

help with Get_
ok some how this is not working i am not sure what i am doing wrong here but what this does is when

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

with clause
hi all, i have a big query that usually access the same table more than once. for example, i have s

How to restrict the display of report variants
Hello All,

I want t know how to restrict the display of report variants.
I mean, whe

Login Control?!
I have a Web Site that uses the login control also I have set the destinationurl to the page I want

Adding post count
How would I make it so everytime someone clicks submit on my form, their row in the database for the

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

extract data
Code: <div class="post hentry uncustomized-post-template">

Including calander to page - will not show other months than current??
im trying to add an existaing calander onto a profile page by using Code: <?php include "

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



Play Free Quiz and Win Cash