Changing The Size Of Input Forms.

Discussion in 'Programming' started by SUPERSTEVE9219, Jul 13, 2007.

  1. #1
    Is there any way to change the length of a input form? The code im using right now is this.

    <form method="post" action="/archivePage.php">
    <br><input type="text" name="url" value="">
    <input type="submit" name="submit" value="Submit">
    </form> 
    HTML:
    I want to make the input box longer, how would I go about doing this?
     
    SUPERSTEVE9219, Jul 13, 2007 IP
  2. jmhyer123

    jmhyer123 Peon

    Messages:
    542
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <input type="text" name="url" value="" size="XX">

    size=XX changes the length of the text box
     
    jmhyer123, Jul 13, 2007 IP
  3. SUPERSTEVE9219

    SUPERSTEVE9219 Well-Known Member

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #3
    thanks!

    is there anyway to make the whole thing bigger? Like the text, and the height also.
     
    SUPERSTEVE9219, Jul 13, 2007 IP
  4. jmhyer123

    jmhyer123 Peon

    Messages:
    542
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you need to use a text area to do that:

    <textarea name="NAME" rows="XX" cols="XX"></textarea>

    That will change the width and height, rows="XX" will change the height and cols="XX" will change the width.
     
    jmhyer123, Jul 13, 2007 IP