title: InStr() asp classic form field validation
body: <p>I'm trying to check for valid email address in a form field using:</p>
  
  <pre><code>if Request ("email") = "" then
          bError = true
  ElseIf Instr(1, email," ") &lt;&gt; 0 Then
          bError = true
  ElseIf InStr(1, email, "@", 1) &lt; 2 Then
          bError = true
      else
            */go to success page*/
  </code></pre>
  
  <p>But if there is a space in the email address it still passes the validation. So my question is, how do I check for spaces using this method?</p>