Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2007
    Posts
    34
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Form validation using ASP

    Hi guys, is there anyone can help about the form validation using ASP?The page is a submit form and if the required field is blank, a message will popup for alerts.

    Many thanks

    Jerus

  • #2
    dev
    dev is offline
    New Coder
    Join Date
    Jan 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.w3schools.com/js/js_form_validation.asp
    u can find a sample here it might be helpfull to u.

    regards
    dev

  • #3
    New Coder
    Join Date
    Jan 2007
    Posts
    34
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks dev. :-)

  • #4
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Don't rely on client-side javascript validation. It can be disabled and then your script has no protection.

    Always have server-side validation.
    Here is an example using simple If/Else statements

    http://computer-helpforum.com/asp/as...validation.asp

  • #5
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    degsy, thanks for your example.
    Indeed, if an user had JavaScript disabled, my validation script it's useless.
    Last edited by diana13; 02-06-2007 at 07:26 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •