Is there a way to test if the spacebar has been pressed in a form text input. I know nthe value or keycode is 32 and have tried various options using statements like:
elseif($rec =='' || $rec == 32 || $rec == ' ')
but still not recognized. I would appreciate any help with this and the code I posted is just part of the relevant code I am using to check for value. Thanks
using
preg_match()using PHP
strpos():