validation

We use number validation i.e. in phone number field that restrict everything in field except 0 to 1. Some times user wants that phone number should be in in different format i.e. (+92)-(300)-(4269752) instead of +923004269752 and similarly in email address field it is recommended that you just check the presence of . and @. […]

{ 0 comments }

Following script will check that whether user has entered the number or digit in field. e.g. In Phone Number Text Field.

{ 0 comments }

In forms to prevent people from writing jhgkljtb7ibylihyb8lyi in phone TextField use the following script.

{ 1 comment }

User fills up the form and hit submit button and all the variables go to the next page or at the same page to script and script then mails or does something with variables. But what if user did not filled the form and submitted the data and your form did not have validation script […]

{ 0 comments }

Form Authentication or Validation Give your form a name and put onsubmit action in form tag. i.e. <form name="mailform" method="POST" action="pagename.php" onsubmit="return CheckData()"> </form> Put this in the head section of your webpage (Authentication java script). You can also create an external javascript file lets say abc.js and call it in head section of the […]

{ 0 comments }