Category Archives: Validaton Rules

Form validation with jQuery from scratch

The HTML form There’s a pretty diverse opinion on how this should be done exactly, but we’ll make the code flexible enough to handle different markup styles. <form> <fieldset> <legend>Legend Name</legend> <div> <label for="name">Name</label> <input type="text" id="name" name="name"> </div> </fieldset> </form> This is how I markup my forms. Trying to keep it as simple and semantic as possible, but adding the div to make styling easier. Specifying input validation In HTML4 there is no obvious way attach validation rules to an input. A few developers have been somewhat orthodox and added their own “validation” attribute. <input type="text" id="name" name="name" validation=”required email”> ...

Encryption rules

Encryption needs are very common among all the projects. Please follow the encryption rules to save every kind of critical data within your web application. All Passwords stored in the database must be encrypted. Querystring must be encrypted. Please use fake variables and values to make your querystring disguised and difficult to be guessed easily. for example if user id has to be passed for information in querystring the wrong way that is being used in most of the sites is http://www.mysite.com?userid=12 Its very easy to break this and anyone can put any number instead of ‘12′ at the end of querystring to obtain the information that will be processed with this perameter. To make this secure and unguessable, we can modify the querystring in the following menner http://www.mysite.com?c=2&d=123430089&cap=No&x=M_wuN_t-9rxrgIqQvaoGbjjr8YxNqLoDK ...

 

 

Twitter Feeds

Privacy Policy | Terms & Conditions Copyright 2011 , Techliance..! Techliance & Techliance logo are trademarks of Techliance LLC. Other products, logos, and company names on Techliance website may be trademarks or trade names of their respective owners.

Join Us On