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

105 Like 41 Dislike
Previous php-forum Next php-forum
Other php-forum

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

Multiple arrays inside data
Hi,

Simple question. I have a column called "array" in my database, and inserted in

Help uploading .JPG
I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what c

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.

I need to create a drop

Quick variable question
hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set

Text file to .Dat file Conversion in PHP
Hi All,
Could anybody provide code for Text file to .Dat file Conversion in PHP.

Tha

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: [Select]$setImage= 'productimages

CODE NOT WORKING
Code: [Select]<?php
//include shared codes

include '../lib/common.php';
include

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

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