Jump to content

Coding- Registration form


lcpoon06

Recommended Posts

i need the coding for registration form. The related information are required are name,add, zip,city,.. and so on.
In addition, the form is required user to fill in the profile information of forum.
The profile information is my additional function in my E-journal system.
Thanks to who r willing to help me.
Link to comment
Share on other sites

Hi.

Below is the code for an simple registration form. You have to make changes to make it suite your needs. Hope it helps. ;)

[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="sub">
<form action="" method="post" name="form1" id="form1">
  <table width="90%" border="0" cellpadding="8">
    <tr>
      <td colspan="3" class="HeaderColor">        <h4>Register</h4>      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor" nowrap="nowrap">
        <label for="username"> User Name*</label>      </td>
      <td colspan="2" class="TitleColor">
        <input type="text" id="username" name="textfield" />
        <br />        <span class="small">*Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</span>      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">
        <label for="password"> Password</label>      </td>
      <td colspan="2" class="TitleColor">        <input type="text" id="password" name="textfield2" />      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">
        <label for="confirmpassword"> Confirm<br />
        Password*</label>      </td>
      <td colspan="2" class="TitleColor">
        <input type="text" id="confirmpassword" name="textfield3" />
        <br />        <span class="small">* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</span>      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">        Name      </td>
      <td width="43%" class="TitleColor">
        <label for="first">First: </label>        <input type="text" id="first" name="textfield4" />      </td>
      <td width="46%" class="TitleColor">
        <label for="last">Last: </label>        <input type="text" id="last" name="textfield5" />      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">
        <label for="email"> Email</label>      </td>
      <td colspan="2" class="TitleColor">        <input type="text" id="email" name="textfield6" size="50" />      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">        Gender      </td>
      <td colspan="2">        <p class="TitleColor">
          <label for="male">Male </label>
          <input type="radio" id="male" name="radiobutton1" value="radiobutton" />
          <label for="female">Female </label>
          <input type="radio" id="female" name="radiobutton1" value="radiobutton" />
        </p>      </td>
    </tr>
    <tr style="vertical-align: top">
      <td style="text-align: right" class="LabelColor">        Birth Date      </td>
      <td colspan="2">        <table border="0" cellspacing="2" cellpadding="0">
          <tr style="text-align: left">
            <td class="TitleColor">
              <label for="month">MM </label>
              <input type="text" id="month" name="textfield7" size="2" />            </td>
            <td class="TitleColor">
              <label for="day">DD </label>
              <input type="text" id="day" name="textfield8" size="2" />            </td>
            <td class="TitleColor">
              <label for="year">YYYY </label>
              <input type="text" id="year" name="textfield9" size="4" />            </td>
          </tr>
        </table>      </td>
    </tr>
    <tr style="vertical-align: top">
      <td colspan="3">
        <p class="StoryContentColor">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.<br />
          <label for="yes1">Yes </label>
          <input type="radio" id="yes1" name="radiobutton2" value="radiobutton" checked="checked" />
          <br />
          <label for="no1">&nbsp;No </label>
          <input type="radio" id="no1" name="radiobutton2" value="radiobutton" />
        </p>        <p class="StoryContentColor">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. <br />
          <label for="yes2">Yes </label>
          <input type="radio" id="yes2" name="radiobutton3" value="radiobutton" checked="checked" />
          <br />
          <label for="no2">&nbsp;No </label>
          <input type="radio" id="no2" name="radiobutton3" value="radiobutton" />
        </p>      </td>
    </tr>
    <tr style="vertical-align: top" class="FooterColor">
      <td colspan="3">
        <input type="submit" name="SubmitName" value="Submit" />      </td>
    </tr>
  </table>
</form>
</body>
</html>
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.