Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2003, 11:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validate the form

Another question.
Should I have both form validation from client side and server side? One of my network guy told me that I should have client side and server side validation to prevent from hacker. If so I can know how to do on client side by javascript. How do I do on server side?
Again Thanks All Helps!!!
 
Old July 15th, 2003, 01:53 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

You can use some ASP validation functions in the language u use for ASP scripting (similar to functions on the client side).
Client side script prevent user's browser to send a form to the server if form fields aren't appropriate filled. In order to check form fields you can write javascript validation code, and prevent user to submit the form without the validation.
However, user can disable javascript functions for his browser, and in this case your client-side validation routines will not be executed, and user can submit the form w/o validation. That's the reason why you need server side validation if the fields validation is important to your app.


...but the Soon is eclipsed by the Moon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Form doesn't w3c validate, html 4.01 mps2006 HTML Code Clinic 1 November 26th, 2006 03:41 AM
chapter 3 validate form. lucian BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 October 16th, 2006 05:17 AM
Validate form dreamdragon Pro JSP 0 December 11th, 2004 08:11 AM
Validate Event tbriers Pro VB 6 1 April 2nd, 2004 08:57 PM
Validate calculated field in sub form MG76 Access 4 March 18th, 2004 04:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.