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" />
       <br/><br/>
       <div class="label">Last Name:</div> <input id="lastName" type="text" />
       <br/><br/>
       <div class="label">E-mail:</div> <input id="email" type="text" />
       <br/><br/>
       <div class="label">Username:</div> <input id="username" type="text" />
       <br/><br/>
       <div class="label">Password:</div> <input id="password" type="password" />
       <br/><br/>
       <input type="submit" value="Register" id="submit" disabled />
       <br/>
    </form>
</div>

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