Quick question

Discussion in 'PHP' started by karl_murphy, Apr 10, 2008.

  1. #1
    How do I place 'return' spaces into a textarea so that the data I populate it with appears halfway down the box?
     
    karl_murphy, Apr 10, 2008 IP
  2. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    <textarea><? echo "\n\n\n\n\n\n" . $mytext; ?></textarea>
     
    m0nkeymafia, Apr 10, 2008 IP
  3. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    of course, I'm being stupid today! Do you know if it is possible to display a horizontal rule in a textbox?
     
    karl_murphy, Apr 10, 2008 IP
  4. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Only by adding hyphens or underscores like so:

    
    <textarea>
    Text here followed by a big gap
    \n\n\n\n\n\n\n
    ----------------------------------\n
    \n
    Other text here
    </textarea>
    Code (markup):
     
    m0nkeymafia, Apr 10, 2008 IP
  5. singh.ajit05

    singh.ajit05 Peon

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can use <hr /><hr />
     
    singh.ajit05, Apr 10, 2008 IP
  6. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    You can't use <hr> in a text box as it actually displays "<hr>" instead of the line itself
     
    karl_murphy, Apr 10, 2008 IP
  7. singh.ajit05

    singh.ajit05 Peon

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Why dont use text editor like fckeditor...with full abllity to add any style in a text
     
    singh.ajit05, Apr 10, 2008 IP