HTML INPUT TYPE=TEXT???
Results 1 to 3 of 3

Thread: HTML INPUT TYPE=TEXT???

  1. #1
    Registered User
    Join Date
    Oct 2000
    Location
    Kansas City, MO
    Posts
    1,162

    Red face HTML INPUT TYPE=TEXT???

    I was wondering how to code html input text boxes. I need to know how to do multiline and scrollbars. And if possible selecting the text.

    I've looked through MSDN and can't find nothing that I want. I trying to build a HTML/ASP form; the 1st page will be the client form, 2page will be a varify page and the 3rd would insert records into a database.

    Thanks,

    <IMG SRC="smilies/confused.gif" border="0">

  2. #2
    Registered User
    Join Date
    Oct 2000
    Location
    Kansas City, MO
    Posts
    1,162

    Post

    never mind.

  3. #3
    Registered User
    Join Date
    Jan 1999
    Location
    London, Great Britain
    Posts
    300

    Post

    Just for the others out there, the answer is not to use an Input box as this only allows single lines.

    You need to use a TEXTAREA which allows you to specify the number of rows and columns for you text box and any default text in the box:

    Code:
    &lt;textarea cols="40" rows="6"&gt;
    Type your reply here...
    &lt;/textarea&gt;
    You can always drop in some JavaScript code to select all the text when the textarea box gets the focus.
    I'd rather die peacefully in my sleep like my Grandfather,
    than screaming in terror like his passengers.
    Jim Harkins
    <a href="http://www.Horrible.Demon.co.uk/" target="_blank">http://www.Horrible.Demon.co.uk/</a>

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
  •