View Single Post
  #2 (permalink)  
Old Nov 21st, 2007, 06:05
Monie Monie is offline
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: need a little help with my asp form

Perhaps you could check out my ASP Login Page that I have created HERE
or the working example HERE

HTML: Select all
'Open your database here...
 
'Check for duplicated entry for the Username and Fullname entered by the user in the registration form!
     do while not rs.EOF
       'If Username already exist, alert user with QueryString!
        if rs("username")=Username then
            set rs=nothing
            set conn=nothing
            Response.Redirect("duplicatedUsername.asp")

       'If Fullname already exist, alert user with QueryString!
        Else If rs("fullname")=Fullname Then 
            set rs=nothing
            set conn=nothing
            Response.Redirect("duplicatedEmail.asp")
        End If
        rs.MoveNext
    loop
Hope this will give you an idea how to do the validation..
Reply With Quote