please send me javascript validation code

please send me javascript validation code

View Answers

January 14, 2009 at 1:00 AM

Hi friend,

<html>
<title>user information</title>
<head>

<style>
a.first:link { color: green;text-decoration:none; }
a.first:visited{color:green;text-decoration:none;}
a.first:hover{color:yellow;text-decoration:none;}

a.second:link { color: #400000;}
a.second:visited{color:#400000;}
a.second:hover{color:white;}

body{
background-color:#D2B48C;}
td{text-color:#400000 ;
}
</style>

<script type="text/javascript">

function validateForm(theForm){

if(theForm.fname.value==""){

//Please enter username

alert("Please enter User Name.");

theForm.fname.focus();

return false;

}

if(theForm.lname.value==""){
//please enter Last Name
alert("Please enter Last Name.");
theForm.lname.focus();
return false;
}

if(theForm.address.value==""){
//please enter Address
alert("Please enter Address.");
theForm.address.focus();
return false;
}

if(theForm.zcode.value==""){
//please enter zipcode
alert("Please enter zipcode.");
theForm.zcode.focus();
return false;
}

if(theForm.country.value==""){
alert("Please enter country name");
theForm.country.focus();
return false;
}

if (theForm.cardType.value=="") {
alert("You must choose at least one option");
theForm.cardType.focus();
return false;
}



if(theForm.cnumber.value==""){
alert("Please enter card Number!");
theForm.cnumber.focus();
return false;
}

if(theForm.dexpiry.value==""){
alert("Please select card Expiry Date!");
theForm.dexpiry.focus();
return false;
}


return true;
}
</script>
</head>

January 14, 2009 at 1:01 AM

<body>
<center>
<table border="0" align=center>
<tr>
<td>
<font class=first size=10 color=black><i><b>Real Estate Company</b></i></font></tr>
</table>

<table border="0" align=right>
<tr>
<td><a href="sign in.html"><font size=4 color=black>sign in</font>
<td><a href="sign Up.html"><font size=4 color=black>sign up</font>
</tr>
</table><br><br>
<hr></hr>
<table border="0" align="center">
<tr>
<td><a class="first" href="home.html"><b><font size=4>Home</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="AboutUs.html"><b><font size=4>AboutUs</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="propertysearch.html"><b><font size=4>PropertySearch</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="gallery.html"><b><font size=4>Gallery</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="quicksearch.html"><b><font size=4>QuickSearch</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><a class="first" href="Link Your Property.html"><b><font size=4>Link Your Property</font></b></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="first" href="contactus.html"><b><font size=4>ContactUs</font></b></a>
</table>
<hr></hr>
<marquee><font color="white" size=6><b>Data about shares/other realestate information...</b></font>
</marquee>
<hr></hr>
<br>
<br>

<form method="GET" action="Insertdata" onsubmit="return validateForm(this);">
<td>
<u>Billing Information:</u></td><br><br>

<td>First Name*&nbsp;<input type="text" name="fname"></td><br>
<td>Last Name*&nbsp;&nbsp;<input type="text" name="lname"></td><br>
<td>Address*&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="address"></td><br>
<td>City&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="city"></td><br>
<tr></tr><tr><td>State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td><select>
<option value="-1">Select State</option>
<option value="-1">Andaman and Nicobar</option>
<option value="-1">Andhra Pradesh </option>
<option value="-1">Arunachal Pradesh </option>
<option value="-1">Assam</option>
<option value="-1">Bihar </option>
<option value="-1">Chandigarh </option>
<option value="-1">Chhattisgarh </option>
<option value="-1">Dadra and Nagar </option>
<option value="-1">Daman and Diu </option>
<option value="-1">Delhi </option>
<option value="-1">Goa </option>
<option value="-1">Gujarat </option>
<option value="-1">Haryana </option>
<option value="-1">Himachal</option>
<option value="-1">Jammu and Kashmir </option>
<option value="-1">Jharkhand </option>
<option value="-1">Karnataka </option>
<option value="-1">Kerala </option>
<option value="-1">Lakshadweep</option>
<option value="-1">Madhya Pradesh </option>
<option value="-1">Maharashtra </option>
<option value="-1">Manipur </option>
<option value="-1">Meghalaya </option>
<option value="-1">Mizoram </option>
<option value="-1">Nagaland </option>
<option value="-1">Orissa</option>

January 14, 2009 at 1:02 AM

<option value="-1">Puducherry </option>
<option value="-1">Punjab </option>
<option value="-1">Rajasthan </option>
<option value="-1">Sikkim </option>
<option value="-1">Tamil Nadu </option>
<option value="-1">Tripura </option>
<option value="-1">Uttarakhand </option>
<option value="-1">Uttar Pradesh </option>
<option value="-1">West Bengal</option>
</option>
</select><br>

<td>Zipcode*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="zcode"></td><br>
<td>Country*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="country"></td><br>
<td>Phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="phone"></td><br><br>
<td><u>Payment Information:</u></td><br><br>
Card Type*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<select name="cardType" >
<option value='-1'>select</option>
<option value='0'>Master Card</option>
<option value='1'>Visa</option>
<option value='2'>American express</option>

</select><br><br>
</select>
<td>Card Number*&nbsp;<input type="text" name="cnumber"></td><br><br>
<td>Date of Expiry*&nbsp;<input type="text" name="dexpiry"></td><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td><input type="submit" name="submit" value="Continue"></td>
<td><input type="reset" value="Reset"></td>

</form>
</center>

</body>
</html>

------------------------------

Thanks

Amardeep









Related Tutorials/Questions & Answers:
please send me javascript validation code - Java Beginners
please send me javascript validation code  hallo sir , please send me java script code for this html page.since i want to do validation.i am a new user in java ....please send me its urgent
send me javascript code - Java Beginners
send me javascript code  please send me code javascript validation code for this html page.pleaseeeeeeeee. a.first:link... after javascript validation : a.first:link { color: green;text
Advertisements
please send me java script for html validation - Java Beginners
please send me java script for html validation  please send me code for javascript validation .........please send me its urgent a.first:link { color: green;text-decoration:none; } a.first:visited{color:green;text
how to send email please give me details with code in jsp,servlet
how to send email please give me details with code in jsp,servlet  how to send email please give me details with code in jsp,servlet
Javascript validation code
,email required etc) Kindly please send me the code as soon as possible...Javascript validation code  Hi, I need a javascript validation code for the following fields 1)Name 2)Email 3)Mobile 4)City 5)State 6)Product type 7
Javascript validation code
..it should display enter the field required Kindly please send me the code...Javascript validation code  Hi, I need a javascript validation code for the following fields 1)Name 2)Email 3)Mobile 4)City 5)State 6)Product type 7
please send me the answer - JDBC
please send me the answer -difference between DriverManager and DataDourse   what is Datasourse? What r the advantages? what is the difference between DriverManager and DataDourse
sir, how to convert excel file to csv file using java? please send me sample code.
sir, how to convert excel file to csv file using java? please send me sample code.  please send me sample code for converting excel file into csv file uisng java
this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail
error please send me the solution
error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
error please send me the solution
error please send me the solution  HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception
i want to create website,with manu with three level submenu on top side of page please send me code java
i want to create website,with manu with three level submenu on top side of page please send me code java   iam createing wibsite thats using eclipse andtomcat server,please help me to write menu with three level submenu
please send me the banking data base in swings
please send me the banking data base in swings  sir, please send me how to create the banking data base program in swings
please send code - Java Beginners
please send code  hai friends plese provide code for fallowing... number it should be taken as single number) URGENTLY send the code for this  Hi friend, Code to solve the problem : class StringExampleJava
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page  <p>?xml version='1.0' encoding...;title>view</title> <script type="text/javascript" >
please check my code is wrong or ok.it was not work .this is form validation in javascript using jsf page
Form validation in javascript using jsf page  ?xml version='1.0...; <title>view</title> <script type="text/javascript...;   Please visit the following link: JSF
pls send me the code for login and register - Java Beginners
pls send me the code for login and register  pls immediately send me the jsp code for login and registration with validation with java bean in mysql database...  Hi friend, This login action code
combox validation javascript code - JSP-Servlet
combox validation javascript code  hiiiiiii, I want a javascript code for combobox field validation for my Lotus Notes web page.... thnx  Hi This is the source code of combobox validation in javascript
please help me to write a code for this program
please help me to write a code for this program   1 1 1 1 2 2 1 1 3 4 3 1 1 4 7 7 4 1
please help me to write a code for this program
please help me to write a code for this program   1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Please tell me the code to generate the below structure
Please tell me the code to generate the below structure  1 2 3 4 5 6 7 8 9 1 2 3 4 6 7 8 9 1 2 3 7 8 9 1 2 8 9 1 9 1 2 8 9 1 2 3 7 8 9 1 2 3 4 6 7 8 9 1 2 3
please help me to give code - Java Beginners
please help me to give code  Write a function with a signature cheerlead(word) that prints a typical cheer as follows. The word robot: Gimme an R Gimme an O Gimme a B Gimme an O Gimme a T What did you give me? ROBOT
please help me to give code - Java Beginners
please help me to give code  Write a function, sliding(word, num)that behaves as follows. It should print out each slice of the original word having length num, aligned vertically as shown below. A call to sliding(examples, 4
Please help me fix this code - MobileApplications
Please help me fix this code   Please help me in this area of code... in the background of the forms in this code i want to sum all expenses amount... expenses)", "Please fill all required field \n \n * This signify required field
please help me to give code - Java Beginners
please help me to give code  Write a program that uses loops to generate an n x n times table. The program should get n from the user. As a model here is a 4 x4 version: | 1 2 3 4
please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level stair case made of text. The user should choose the text character and the number of stairs in the stair case * ** *** ****   Hi friend
please convert for me this code to GUI - Swing AWT
please convert for me this code to GUI    THE CODES ARE BELOW...; } else screen.displayMessageLine( "\nInvalid account Nummber or PIN, Please...; screen.displayMessageLine("\n Your cash has been"+ "dispensed. please take your cash
please help me to give code - Java Beginners
please help me to give code  Write a program that reads a file named famous.txt and prints out the line with the longest length. In the case of a tie, you may print out only one of them. For example in the file: Alan Turing
please convert for me this code to GUI - Swing AWT
please convert for me this code to GUI  THE CODES ARE BELOW, CLASS ATMCaseStudy is the driver class that runs all the other classes. its very urgent... account Nummber or PIN, Please try again."); } private void
I didn't gat an output for this code, plz send me a correct code
I didn't gat an output for this code, plz send me a correct code  Hi, Here is my code: import java.awt.event.*; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.*; import java.sql.*; public
Please provide jquery inline form validation for the code
Please provide jquery inline form validation for the code   <...="text/javascript" src="Datetimepicker.js"></script> <body bgcolor..." size="25" name="dob" style=" height : 25px;"><a href="javascript:NewCssCal
Please help me to write a code for add contacts to groups in a website?
Please help me to write a code for add contacts to groups in a website?   Iam developing a site. In that site I need to write code for Groups... send a code for this? Please make it fast
please help me.
please help me.  Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath
Please help me to modify my java code from php code
]; } } I tried like this (see below JSP code) ... but this is not giving me the exact result as the above PHP code is giving. So please help me to convert...Modify Java code from PHP Code  i want to covert this php code int
Please help me to modify my java code from php code
Please help me to modify my java code from php code  i want to covert...) ... but this is not giving me the exact result as the above PHP code is giving. So please... same, as they alter it before. Please help me on this topic "how to order rows
javascript validation
button.. please send me the code for this as i am new to the dot net field...javascript validation  i have 4 buttons in my project like save,find,modify,clear and exit. Here my problem is i have to validate in javascript like
i want java code for this xml file...please show me..
i want java code for this xml file...please show me..   xbrli:shares xbrli:pure iso4217:INR
please help me.
please help me.  Please send me a code of template in opencms and its procedure.so i can implement the code. Thanks trinath
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  1) Copy one file content to other? 2) Count the number of words in a file
Please explain this code as many packages and classes are unknown to me .!
Please explain this code as many packages and classes are unknown to me .!  print("code sample");package bluetooth; import java.io.OutputStream.... send the data to the device byte data[] = message.getBytes("iso-8859-1
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  Q 1) In a class first day 25 students are joined. After two days that total students will increased to 60. We can develop a program by using ArrayList concept
Javascript Code for all fields
Javascript Code for all fields  Good Evening Sir/Madam, Please send me the example program using bootstrap framework for all fields of a form. Please send me the javascript code My E-mail id: [email protected] Regards, S
Please give me the code for the below problem - Java Interview Questions
Please give me the code for the below problem  PROBLEM : SALES TAXES Basic sales tax is applicable at a rate of 10% on all goods, except books... Vidya  Hi Friend, Try the following code: import java.util.
send me example of jmsmq - JMS
send me example of jmsmq  please send me example about jmsmq (java microsoft message queuing ) library
javascript validation
javascript validation  validation of comparing dropdownlist and textbox in javascript
please help me.
please help me.  How to read a properties file in java with a suitable example. Please send me. Thanks Trinath   Please visit the following link: Java read properties file
urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks
Can any one please help me in this ,,,,,,, need java code for this ,,,,please anyone
Can any one please help me in this ,,,,,,, need java code for this ,,,,please anyone  The Airport Valet Parking Company (AVP) is a company which provides a convenient medium cost parking solution to users of a local airport. Key
I need help on my Java code.... please please help me out!?
I need help on my Java code.... please please help me out!?  Well my code is supposed to ask for an input file and then (ex: input.txt), read... the anagram on screen or the output file! Please show me whats wrong. Thanks i
send mail using JavaScript
send mail using JavaScript  How can we send mail using JavaScript?   Hi friends, You can not send email directly using JavaScript. But you can use JavaScript to execute a client side email program send the email using

Ads