Java Reference
In-Depth Information
php
PHP is a popular open source server‐side scripting language and must be installed on your computer
if you want to run PHP scripts. You can download PHP in a variety of forms (binaries, Windows
installation wizards, and source code) at www.php.net . The PHP code used in this example was
written in PHP 5.
XMLhttprequest Smart Form
trY it out
In this Try It Out, you will use Ajax to validate form fields. Open your text editor and type the
following:
<!DOCTYPE html>
 
<html lang="en">
<head>
<title>Chapter 14: Example 1</title>
<style>
.fieldname {
text-align: right;
}
 
.submit {
text-align: right;
}
</style>
</head>
<body>
<form>
<table>
<tr>
<td class="fieldname">
Username:
</td>
<td>
<input type="text" id="username" />
</td>
<td>
<a id="usernameAvailability" href="#">Check Availability</a>
</td>
</tr>
<tr>
<td class="fieldname">
Email:
</td>
<td>
<input type="text" id="email" />
</td>
<td>
<a id="emailAvailability" href="#">Check Availability</a>
</td>
</tr>
<tr>
<td class="fieldname">
 
Search WWH ::




Custom Search