Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 11th, 2004, 08:11 AM
Registered User
 
Join Date: Dec 2004
Location: , , United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validate form

Hi
I'm quite new at javascript but got a little bit of no how. anyway i've got a form i want validated, What i'm try to do is validate the whole form for correct input and no null fields aswell as validate the 'password' against the 'VPassword' so that users have to enter a password twice which matches, anyway here's the whole page.
please help i'm getting low on hair to pull out.

<%@ LANGUAGE = "VBSCRIPT" %>
<% OPTION EXPLICIT %>


<html>
<head>
    <title>Customer Information Form</title>

<link rel="stylesheet" type="text/css" href="mystyles.css">


</head>
<BODY BACKGROUND="graphics\bg1.gif" Link="yellow" VLINK="silver" ALINK="white">




<CENTER><FORM name='CustFrm' action='custadd.asp?CartID=<%=CartID%>' method='POST'>
<p>Please provide the following information to start an account:</p>

<TABLE border="0" cellpadding="2" cellspacing="2" >
<TR>
    <TD>
   First Name :
    </TD>
    <TD>
   <INPUT type='text' name='FName' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Last Name :
    </TD>
    <TD>
   <INPUT type='text' name='LName' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Address :
    </TD>
    <TD>
   <INPUT type='text' name='Address' size='40' value=''>
    </TD>
</TR>
<TR>
    <TD>
   City :
    </TD>
    <TD>
   <INPUT type='text' name='City' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Post Code :
    </TD>
    <TD>
   <INPUT type='text' name='PostCode' size='10' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Country :
    </TD>
    <TD>
   <INPUT type='text' name='Country' size='15' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Phone :
    </TD>
    <TD>
   <INPUT type='text' name='Phone' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   E-Mail :
    </TD>
    <TD>
   <INPUT type='text' name='EMail' size='40' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Username :
    </TD>
    <TD>
   <INPUT type='text' name='Username' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Password :
    </TD>
    <TD>
   <INPUT type='password' name='Password' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>
   Verify Password :
    </TD>
    <TD>
   <INPUT type='password' name='VPassword' size='20' value=''>
    </TD>
</TR>
<TR>
    <TD>

    </TD>
    <TD>
   <INPUT type='reset' name='reset' value='Reset the form'>
    </TD>
</TR>
<TR>
    <TD>

    </TD>
    <TD>
   <INPUT type='submit' name='submit' value='Send info'>
    </TD>
</TR>
</TABLE>
</FORM>

</CENTER>
</body>
</html>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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 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



All times are GMT -4. The time now is 10:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.