Using PHP + Images in an html TextArea tag

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Using PHP + Images in an html TextArea tag

    I'm trying to add images to a TEXTAREA tag (in my PHP web page) using
    the usual image tag:

    <INPUT TYPE="image" etc.

    But the images are not showing up in the TEXTAREA but rather outside,
    below it - I'm trying to display thumbnail images in a scrolling area
    on the web page so I can insert a variable number of images into the
    TEXTAREA object - can this be done this way or is there a better way
    to insert multiple images in a scrolling object for a web page?

    Thanks...

    Ralph Freshour Guest

  2. Similar Questions and Discussions

    1. strip html tags from textarea content
      Hi, I'm really new to flex developing, I'm writing a page that have to retrieve some content from an xml file and display it in some form...
    2. textArea - HTML - img URL
      I've got a textArea loading html from an external file. The problem is with displaying images. Everything works fine when the image URL is e.g....
    3. load images from database into textarea
      Hi Im trying to load a small pice of HTML from our CMS system into the textarea component. If an image src is a dynamic file the image is not...
    4. TextArea HTML Help
      If someone can help it would be great!....I'm using ActionScript in Flash MX2004 to fill a TextArea box with results from some calculations. I have...
    5. Removing carriage returns from <textarea></textarea> input
      Hiya, I have a form with a <textarea></textarea> to receive user input. This input is then stored in a database and sent by fax... I need to...
  3. #2

    Default Re: Using PHP + Images in an html TextArea tag

    Ralph Freshour wrote:
    > I'm trying to add images to a TEXTAREA tag (in my PHP web page) using
    > the usual image tag:
    >
    > <INPUT TYPE="image" etc.
    >
    > But the images are not showing up in the TEXTAREA but rather outside,
    > below it - I'm trying to display thumbnail images in a scrolling area
    > on the web page so I can insert a variable number of images into the
    > TEXTAREA object - can this be done this way or is there a better way
    > to insert multiple images in a scrolling object for a web page?
    >
    > Thanks...
    I know it's impossible for images to be in a textarea, hence it being a
    "textarea" You could create a whole new PHP page (or accept a special
    param in the GET line) and use an <iframe>...

    Or just output it to the screen like you would normaly and let the user
    scroll normally.


    -Eric Kincl
    Eric Kincl Guest

  4. #3

    Default Re: Using PHP + Images in an html TextArea tag

    Ralph Freshour <ralph@primemail.com> writes:
    > I'm trying to add images to a TEXTAREA tag (in my PHP web page) using
    > the usual image tag:
    >
    > <INPUT TYPE="image" etc.
    TEXTAREA is for creating a multi-line text entry field for a form,
    not for displaying images. And the "usual" image tag is IMG, unless
    the form has clickable images that should effect a form submission.
    > But the images are not showing up in the TEXTAREA but rather outside,
    > below it - I'm trying to display thumbnail images in a scrolling area
    > on the web page so I can insert a variable number of images into the
    > TEXTAREA object - can this be done this way or is there a better way
    > to insert multiple images in a scrolling object for a web page?
    Are you creating a form for submission, or are you just trying to
    (ab)use form elements to control how the page is rendered? If the
    latter, then perhaps IFRAME is what you want.

    BTW, this doesn't have anything to do with PHP -- it's an HTML issue.

    --
    Michael Fuhr
    [url]http://www.fuhr.org/~mfuhr/[/url]
    Michael Fuhr Guest

  5. #4

    Default Re: Using PHP + Images in an html TextArea tag

    Ralph Freshour <ralph@primemail.com> wrote in message
    news:<6deorvcbnef7ouvm1rb1cr98oreu4svk5g@4ax.com>. ..
    >
    > I'm trying to add images to a TEXTAREA tag
    Stop trying. It's not going to work. TEXTAREA is just a form
    input, it is not supposed to hold anything othe than plain text...
    > I'm trying to display thumbnail images in a scrolling area
    > on the web page
    Use frames.

    Cheers,
    NC
    Nikolai Chuvakhin Guest

  6. #5

    Default Re: Using PHP + Images in an html TextArea tag

    Hi, U can use < dev class="xx"></div>
    Where class xx:
    ..xxx{
    background-color: white;
    overflow: scroll;
    ......
    }

    [email]nc@iname.com[/email] (Nikolai Chuvakhin) wrote in message news:<32d7a63c.0311200013.4713a023@posting.google. com>...
    > Ralph Freshour <ralph@primemail.com> wrote in message
    > news:<6deorvcbnef7ouvm1rb1cr98oreu4svk5g@4ax.com>. ..
    > >
    > > I'm trying to add images to a TEXTAREA tag
    >
    > Stop trying. It's not going to work. TEXTAREA is just a form
    > input, it is not supposed to hold anything othe than plain text...
    >
    > > I'm trying to display thumbnail images in a scrolling area
    > > on the web page
    >
    > Use frames.
    >
    > Cheers,
    > NC
    Bob Guest

  7. #6

    Default Re: Using PHP + Images in an html TextArea tag

    Bob wrote:
    > Hi, U can use < dev class="xx"></div>
    > Where class xx:
    > .xxx{
    > background-color: white;
    > overflow: scroll;
    > .....
    > }
    >
    > [email]nc@iname.com[/email] (Nikolai Chuvakhin) wrote in message news:<32d7a63c.0311200013.4713a023@posting.google. com>...
    >
    >>Ralph Freshour <ralph@primemail.com> wrote in message
    >> news:<6deorvcbnef7ouvm1rb1cr98oreu4svk5g@4ax.com>. ..
    >>
    >>>I'm trying to add images to a TEXTAREA tag
    >>
    >>Stop trying. It's not going to work. TEXTAREA is just a form
    >>input, it is not supposed to hold anything othe than plain text...
    >>
    >>
    >>>I'm trying to display thumbnail images in a scrolling area
    >>>on the web page
    >>
    >>Use frames.
    >>
    >>Cheers,
    >>NC
    i'd recommend using an iframe, it'd work much better

    Anonymous Guest

  8. #7

    Default Re: Using PHP + Images in an html TextArea tag


    "Anonymous" <anonymous@isp.com> wrote in message news:92mAb.315809$275.1067304@attbi_s53...
    > Bob wrote:
    >
    > > Hi, U can use < dev class="xx"></div>
    > > Where class xx:
    > > .xxx{
    > > background-color: white;
    > > overflow: scroll;
    > > .....
    > > }
    > >
    > > [email]nc@iname.com[/email] (Nikolai Chuvakhin) wrote in message news:<32d7a63c.0311200013.4713a023@posting.google. com>...
    > >
    > >>Ralph Freshour <ralph@primemail.com> wrote in message
    > >> news:<6deorvcbnef7ouvm1rb1cr98oreu4svk5g@4ax.com>. ..
    > >>
    > >>>I'm trying to add images to a TEXTAREA tag
    > >>
    > >>Stop trying. It's not going to work. TEXTAREA is just a form
    > >>input, it is not supposed to hold anything othe than plain text...
    > >>
    > >>
    > >>>I'm trying to display thumbnail images in a scrolling area
    > >>>on the web page
    > >>
    > >>Use frames.
    > >>
    > >>Cheers,
    > >>NC
    >
    > i'd recommend using an iframe, it'd work much better
    >
    If you don't want to deal with multiple "src" files which you would have to use in an Iframe, you can create a scrolling area with
    CSS. Personally I like this option the best as it keeps all the code together.

    <DIV style="height:160px; border: thin #000000; overflow-y:scroll; overflow-x:hidden;">

    Scrollable HTML/PHP code goes here

    </Div>



    In the end it's not really a PHP issue, but more of an HTML/CSS issue.

    -CF


    ChronoFish Guest

  9. #8

    Default Re: Using PHP + Images in an html TextArea tag

    ChronoFish <com> wrote or quoted: [/ref]
     
    >
    > If you don't want to deal with multiple "src" files which you would
    > have to use in an Iframe, you can create a scrolling area with
    > CSS. Personally I like this option the best as it keeps all the code
    > together.
    >
    > <DIV style="height:160px; border: thin #000000; overflow-y:scroll; overflow-x:hidden;">
    >
    > Scrollable HTML/PHP code goes here
    >
    > </Div>[/ref]

    As with the iframe, this won't work in Mozilla, Firebird or Opera.
    --
    __________
    |im |yler http://timtyler.org/ org Remove lock to reply.
    Tim Guest

  10. #9

    Smile Using PHP + Images in an html TextArea tag

    Quote Originally Posted by Ralph Freshour View Post
    I'm trying to add images to a TEXTAREA tag (in my PHP web page) using
    the usual image tag:

    <INPUT TYPE="image" etc.

    But the images are not showing up in the TEXTAREA but rather outside,
    below it - I'm trying to display thumbnail images in a scrolling area
    on the web page so I can insert a variable number of images into the
    TEXTAREA object - can this be done this way or is there a better way
    to insert multiple images in a scrolling object for a web page?

    Thanks...
    use Cascading Style Sheet(CSS) to add an image inside the textarea.
    Unregistered Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139