Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Checking User


Message #1 by "Andy" <andy@t...> on Wed, 19 Mar 2003 22:20:03 +0800
Hello,

I have an asp page which allow user to create an account.When the form is
submited, I perform some checking on the username field, if the username
field is empty , it will return an error message but it seems not be
working.Below is my code :

'Save entered username and password
 Username = Request.Form("txtUsername")
 Password = Request.Form("txtPassword")
 Fullname = Request.Form("txtFullname")
 Email = Request.Form("txtEmail")

 If Username = " " Then
  Response.Redirect "signup.asp?loginname=failed"
 End If


Hope someone might guide me through.


Thanks.


Andy

Message #2 by "Robert Davis" <robkdavis@h...> on Wed, 19 Mar 2003 18:58:33 -0600
If Len(Username) = 0 Then
   'do something
End If


`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`
Robert
robkdavis@h...
`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


  Return to Index