Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of

Creating a Form

We’re going to start by creating a simple registration form with HTML. The form contains input text boxes for first and last name, email address, username, and password:

<div id="Register">
    <form id="SmartForm" method="post" onsubmit="return false;">
       <div class="label">First Name:</div> <input id="firstName" type="text" />
       <div class="label">Last Name:</div> <input id="lastName" type="text" />
       <div class="label">E-mail:</div> <input id="email" type="text" />
       <div class="label">Username:</div> <input id="username" type="text" />
       <div class="label">Password:</div> <input id="password" type="password" />
       <input type="submit" value="Register" id="submit" disabled />

Now that we’ve created our form, we’ll create an XML file that will represent the users of our application.

  • + Share This
  • 🔖 Save To Your Account