SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disply fields vertically

    hi

    what would be a good way to display these fields vertically?
    like:

    text1 /field1
    text2/ field2
    etc..

    Code:
    <form name="test" id="testid" method="post">
    <label for="testpassword">
      Password: 
      <input type="password" name="testpassword" maxlength="30" />
    </label>
    <label for="username">
      Username: 
      <input type="text" name="username" maxlength="30" />
    </label>
    <label for="blah">
      Blah: 
      <input type="password" name="blah" maxlength="30" />
    </label>
    <textarea name="wesh" rows="20" cols="20"></textarea>
    
    <input type="submit" value="Send This Form" />
    </form>

  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <form method="POST" action="./">
     <p><label>Password: <input type="password" name="testpassword" maxlength="30" /></label></p>
     <p><label>Username: <input type="text" name="username" maxlength="30" /></label></p>
     <p><label>Blah: <input type="password" name="blah" maxlength="30" /></label></p>
     <p><textarea name="wesh" rows="20" cols="20"></textarea></p>
     <p><input type="submit" value="Send This Form" /></p>
    </form>
    Simon Pieters

  3. #3
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •