topical media & game development

talk show tell print

basic-ajax-09-FormValidation.htm / htm



  <html xmlns="http://www.w3.org/1999/xhtml" >
  <head>
      <title>Form Validation Example</title>
      <link id="Link1" rel="stylesheet"  href="FormValidation.css" type="text/css" />
      <script type="text/javascript" src="FormValidation.js"></script>  
  </head>
  <body>
  <form name="form1" id="form1" method="post" action=<formcheck.php>>
  Preferred User Name: <input id="UserName" type="text"  onblur="Validate('UserName')" />
  <br/>
  <span id="span"></span>
  <br/>
  First Name:<input id="FirstName" class="textbox" type="text" />
  <br /><br />
  Last Name:<input id="LastName" class="textbox" type="text" />
  <br /><br />
  Address:<input id="Address" class="textbox" type="text" />
  <br /><br />
  Town/City:<input id="TownCity" class="textbox" type="text" />
  <br /><br />
  Country:<select id="Country" class="textbox" onchange="Change()">
  <option>US</option>
  <option>UK</option>
  </select>
  <br /><br />
  <span id="state">State:</span><input id="Text1" class="textbox" type="text" />
  <br /><br/>
  <span id="zipcode">ZipCode:</span>
  <input id="Text2" class="textbox" type="text" />
  <br /><br />
  <input type="button" value="Click here to submit details" />
  </form>
  </body>
  </html>
  
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.