validation web page

validation web page

vivek i want to crate a webpage with specfic email id and password to that webpage . using jsp & servlets

View Answers

December 7, 2010 at 1:30 PM

Hi Friend,

Try the following code:

<html>
<script>
function checkMail(form,email){
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = document.forms[form].elements[email].value;
   if(reg.test(address) == false) {
      alert('Invalid Email Address');
      document.getElementById('email').value="";
      return false;
   }
}
function validate(){
    checkMail('form','email');
var pass=document.getElementById('pass').value;
if(pass.length<6){
  alert('Password should be of atleast 6 characters');
  document.getElementById('pass').value="";
  return false;
}
}
</script>
<form id="form" method="post"  onsubmit="javascript:return validate();">
<table>
<tr><td>Email </td><td><input type="text" id="email" ></td></tr>
<tr><td>Password </td><td><input type="password" id="pass"></td></tr>
<tr><td></td><td><input type="submit" value="Submit"></td></tr>
</table>
</form>
</html>

Thanks









Related Tutorials/Questions & Answers:
validation web page
validation web page  vivek i want to crate a webpage with specfic email id and password to that webpage . using jsp & servlets   Hi Friend, Try the following code:ADS_TO_REPLACE_1 <html> <script>
Login page validation on ipad
Login page validation on ipad  I am using userId & password labels and their corresponding textfield. Now I want to validate the details by single sign in button and want to switch on to next page. Used two labels again
Advertisements
Registration page with JavaScript Validation
Registration page with JavaScript Validation   HTML Registration page with JavaScript Validation - required source code   Registration page in HTML with JavaScript Validation source code <html> <head>
login page validation
login page validation  hi could you please send me code for login validations Email validation and password email should be in correct format and valid password in java   import java.awt.*; import javax.swing.
web page
web page  1.Create a web page with the following using HTML i) To embed an image map in a web page ii) To fix the hot spots iii) Show all the related information when the hot spots are clicked
WEB PAGE
WEB PAGE  How To Create A Simple web Page Of a gmail using applet
Web Page
Web Page    Use any programming language or package to create a Project 2 .The Main menu should only be displayed, if the user is valid and uses the correct password. If the user is not in the database, then the user should
connect a web page to a database
connect a web page to a database  how to connect a web page to a database
php web page capture
php web page capture  How to capture the history of a web page using PHP
Web Page Transaction
Web Page Transaction  Hello sir, i want to add an Effective page transaction when i go to my home page to other page in js...plllzzz help me...rppy soon
setting web page size
setting web page size  How to set the webpage size in Java
create a one web page
create a one web page  create a one web page with stored values in a database
map on web page
map on web page   i want to insert an area map in my web page how can i do it ? please answer me soon. Its urgent
Web page example
Web page example  Hi, How to make sample web page? Thanks (adsbygoogle = window.adsbygoogle || []).push({});   Hi, If you are aware of HTML then you can write simple web page for your website. You have
new web page
new web page  I am creating a new web page for an user to sign up....how to give error messages if an user has not entered some fields(it can be one or many)... An example could be your webpage where you have indicated in red
web page access
web page access  I was store project in server and i will open that project file in client side add="http://server:8080/project..." this is very..." and project code = "Java Server Page" "HOW TO WRITE CODE CLIENT ACCESS SERVER
Web Page preprocessing
Web Page preprocessing  Java code to extract unique words from an XML file( has different web pages embedded inside <DOCNo>.. ) and display the unique set of words for each document. Say for example, the XML file has 49
web page design
web page design  Great Applianz Ltd. was established in 1985, in New.... The website should provide the following functionality: A Welcome page that gives the user a brief introduction about the company. This page should display the name
web page reading in java
web page reading in java  i wanna read webpage in that i want to get the data from the particular tags like (,) and store into the data base...... can any body tell me the solution? plz urgnt. thanks and regards, jasti  
Jdbc Login Page Validation using Combobox
Jdbc Login Page Validation using Combobox  I got Login By this code i want to login by validating with combobox....The link which you send its without combobox.i m unable to get login by verifying with combo box..Ex banglore
Jdbc Login Page Validation using Combobox
Jdbc Login Page Validation using Combobox  I am beginer to java i am able to validate username and password but unable to get validate the username....... Thanks alot Index.jsp <%@ page language="java" contentType="text
Jdbc Login Page Validation using Combobox
Jdbc Login Page Validation using Combobox  I am beginer to java i am able to validate username and password but unable to get validate the username....... Thanks alot Index.jsp <%@ page language="java" contentType="text
validation
validation  validation
how to add web cam in web page
how to add web cam in web page  how do i embed my webcam in web page. code for embedding web cam in web page
how to create web page on jsp?
how to create web page on jsp?  how to create web page on jsp
Bangla web page - JSP-Servlet
Bangla web page   what is the process to make a bangla web page in jee
Download Current Web Page As PDF
Download Current Web Page As PDF  Need a utility to save current web page as pdf file into specified directory... Thanks In Adv
transferring user to new web page
transferring user to new web page  How to transferring user to new web page automatically
Add music to my web page
Add music to my web page  How do I add midi music to my web page
get JavaScript onto a web page
get JavaScript onto a web page  How do we get JavaScript onto a web page
How to change functionlatiy in web page
How to change functionlatiy in web page  i need to change functionality of my web page..i came to know that by using collections it is possible..but i dont know how to use it...is any other way to change functionality of my web
creating web page for form registration
creating web page for form registration  I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application
web service call in jsp page
web service call in jsp page  I am wandering on internet for hours looking for a simple and good example on how to create a simple JSP page to call a web service when you have a WSDL. I am using tomcat web server and eclipse
attach file in my web page
attach file in my web page  hide button in input typ=file button in jsp
Front Page Web Hosting
Front Page Web Hosting Microsoft Front Page is leading WYSIWYG editor for the development of web site using HTML and DHTML. Front Page is used... providers provides Front Page Support on their web servers. Front Page extensions
validation
validation  we are doing payroll system project in java.So pls provide the complete validation code for employee master form
validation.....
validation.....  hi.......... thanks for ur reply for validation code. but i want a very simple code in java swings where user is allowed to enter only numerical values in textbox , if he enters string values then it should
Create Web Page with jsp
Web Page with jsp       In this example we will show you how to create first web page on tomcat... can take any existing HTML page and we change its extension to "Date.jsp
validation
Validation method valid the in put. otherwise call the javascript onsubmit to check... code.Ok if you use struts then you can use Validation method valid the in put
Validation
); JLabel label=new JLabel("JTable validation Example",JLabel.CENTER); JPanel panel=new JPanel(); panel.add(scroll); JFrame frame=new JFrame("JTable validation
Web Page design and Development Company
Web Page design and Development Company We are web page designing... the world. Web page design and development is an art and skilled developers can create... complete web page design and development solution. Our company is expert
validation
validation  please help me to check validation for <form> <table class="form"> <tr> <td class="col1"> <label>Sno:</label> </td> <td
validation
file its very usefull me,,, i am new no spring. userFormjsp <%@ page...; } Registration Page <table> <tr> <
transferring user to new web page automatically.
transferring user to new web page automatically.   How to transferring user to new web page automatically
Writing a web page to test drive each method in the web app
Writing a web page to test drive each method in the web app  I got an assignment in my university. I need to write a single web page, that lists all the classes in the particular web app. Selecting a class, the page should list
how to use a single web page multiple functionaliteies
how to use a single web page multiple functionaliteies  i have a web page in that according to user role functionality should be varies/changes but page should be common for every user & functionality..my moto is to reduse
how to use a single web page multiple functionaliteies
how to use a single web page multiple functionaliteies  i have a web page in that according to user role functionality should be varies/changes but page should be common for every user & functionality..my moto is to reduse
how to use a single web page multiple functionaliteies
how to use a single web page multiple functionaliteies  i have a web page in that according to user role functionality should be varies/changes but page should be common for every user & functionality..my moto is to reduse
how to use a single web page multiple functionaliteies
how to use a single web page multiple functionaliteies  i have a web page in that according to user role functionality should be varies/changes but page should be common for every user & functionality..my moto is to reduse
how to use a single web page multiple functionaliteies
how to use a single web page multiple functionaliteies  i have a web page in that according to user role functionality should be varies/changes but page should be common for every user & functionality..my moto is to reduse

Ads