test for spacebar value in text input
<p>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:</p>

<pre><code>elseif($rec =='' || $rec == 32 || $rec == ' ')
</code></pre>

<p>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</p>
