Click to See Complete Forum and Search --> : Text recognition


ianripping
02-01-2004, 03:21 PM
I want to create some script that recognises some text entered, adn them directs them to a certain page.

Eg. 1

I enter "1234" into a text field, the code then looks at the text and thinks "34", this means send the user to 34.html

Eg. 2

I enter "I like pie" into a text field and then code thinks "pie" - and sends the user to eat.html

Any idea's?

96turnerri
02-01-2004, 04:20 PM
well you would need an array of each page that it can redirect you to

eg

Array('eat.htm', '34.htm', 69.htm', 'die.htm');

and an array of words that would redirect to each

Array('pie', '34', '69', 'guns');