Jump to content

Check input field not random letters


webgrrl

Recommended Posts

Wondering if anyone can help me.

 

I want a script that will check if the value of a text field is an actual word or if it is just random digits eg gdfgawgwre

is there a way of doing this?

 

i have looked at pspell but i don't care if the words spelt correctly just as long as it isn't random letters/numbers.

 

i'd appreciate any help.

 

 

Link to comment
https://forums.phpfreaks.com/topic/63183-check-input-field-not-random-letters/
Share on other sites

It's hard to check for this sort of thing unless you were to actually compare it with every word in the dictionary, there is a php extension that allows you to check the percentage probability of a word being random. What is the input field for? If it's something like an email it could be checked for certain things like @.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.