Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

How do you make a form?

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok how do you make a form, for example a form that requires a persons name and phone Number.
I guess you would need a label saying "Name" and a text field next to it.
Then you would need a label saying "Phone No." and a text field next to that so that you can enter the number...
How do you do this.. i mean its easy to make labels and texfields.. but how do you line up a label with a textfield so that it looks really neat and nice..???
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean to create a from using HTML?
To align those, put them in a table.
For example:
< form action="servlet" method=GET>
< table>
< tr>
< td>Name
< td>< input type=text name=name size=20>
< tr>
< td>Phone No.
< td>< input type=text name=phone size=11>
< /table>
< /form>

[This message has been edited by Marilyn deQueiroz (edited November 15, 2001).]
 
June
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to write html code and by result it returned something with the real form.
Anyway, just use table and align text field and its label in the same table row (< tr>) but different < td>
< tr>
< td>label
< td>textField

[This message has been edited by Marilyn deQueiroz (edited November 15, 2001).]
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put a space between the < and the tag when you post it here (not when you type it in your own form) to prevent the UBB software from converting your text into html.
 
Water! People swim in water! Even tiny ads swim in water:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic