Using PHP + Images in an html TextArea tag

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ralph Freshour

    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...

  • Eric Kincl

    #2
    Re: Using PHP + Images in an html TextArea tag

    Ralph Freshour wrote:
    [color=blue]
    > 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...[/color]

    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

    Comment

    • Michael Fuhr

      #3
      Re: Using PHP + Images in an html TextArea tag

      Ralph Freshour <ralph@primemai l.com> writes:
      [color=blue]
      > I'm trying to add images to a TEXTAREA tag (in my PHP web page) using
      > the usual image tag:
      >
      > <INPUT TYPE="image" etc.[/color]

      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.
      [color=blue]
      > 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?[/color]

      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

      Comment

      • Nikolai Chuvakhin

        #4
        Re: Using PHP + Images in an html TextArea tag

        Ralph Freshour <ralph@primemai l.com> wrote in message
        news:<6deorvcbn ef7ouvm1rb1cr98 oreu4svk5g@4ax. com>...[color=blue]
        >
        > I'm trying to add images to a TEXTAREA tag[/color]

        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...
        [color=blue]
        > I'm trying to display thumbnail images in a scrolling area
        > on the web page[/color]

        Use frames.

        Cheers,
        NC

        Comment

        • Bob

          #5
          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;
          ......
          }

          nc@iname.com (Nikolai Chuvakhin) wrote in message news:<32d7a63c. 0311200013.4713 a023@posting.go ogle.com>...[color=blue]
          > Ralph Freshour <ralph@primemai l.com> wrote in message
          > news:<6deorvcbn ef7ouvm1rb1cr98 oreu4svk5g@4ax. com>...[color=green]
          > >
          > > I'm trying to add images to a TEXTAREA tag[/color]
          >
          > 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...
          >[color=green]
          > > I'm trying to display thumbnail images in a scrolling area
          > > on the web page[/color]
          >
          > Use frames.
          >
          > Cheers,
          > NC[/color]

          Comment

          • Anonymous

            #6
            Re: Using PHP + Images in an html TextArea tag

            Bob wrote:
            [color=blue]
            > Hi, U can use < dev class="xx"></div>
            > Where class xx:
            > .xxx{
            > background-color: white;
            > overflow: scroll;
            > .....
            > }
            >
            > nc@iname.com (Nikolai Chuvakhin) wrote in message news:<32d7a63c. 0311200013.4713 a023@posting.go ogle.com>...
            >[color=green]
            >>Ralph Freshour <ralph@primemai l.com> wrote in message
            >> news:<6deorvcbn ef7ouvm1rb1cr98 oreu4svk5g@4ax. com>...
            >>[color=darkred]
            >>>I'm trying to add images to a TEXTAREA tag[/color]
            >>
            >>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...
            >>
            >>[color=darkred]
            >>>I'm trying to display thumbnail images in a scrolling area
            >>>on the web page[/color]
            >>
            >>Use frames.
            >>
            >>Cheers,
            >>NC[/color][/color]

            i'd recommend using an iframe, it'd work much better

            Comment

            • ChronoFish

              #7
              Re: Using PHP + Images in an html TextArea tag


              "Anonymous" <anonymous@isp. com> wrote in message news:92mAb.3158 09$275.1067304@ attbi_s53...[color=blue]
              > Bob wrote:
              >[color=green]
              > > Hi, U can use < dev class="xx"></div>
              > > Where class xx:
              > > .xxx{
              > > background-color: white;
              > > overflow: scroll;
              > > .....
              > > }
              > >
              > > nc@iname.com (Nikolai Chuvakhin) wrote in message news:<32d7a63c. 0311200013.4713 a023@posting.go ogle.com>...
              > >[color=darkred]
              > >>Ralph Freshour <ralph@primemai l.com> wrote in message
              > >> news:<6deorvcbn ef7ouvm1rb1cr98 oreu4svk5g@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[/color][/color]
              >
              > i'd recommend using an iframe, it'd work much better
              >[/color]

              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:1 60px; 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


              Comment

              • Tim Tyler

                #8
                Re: Using PHP + Images in an html TextArea tag

                ChronoFish <deja@chronofis h.com> wrote or quoted:[color=blue]
                > "Anonymous" <anonymous@isp. com> wrote in message news:92mAb.3158 09$275.1067304@ attbi_s53...[color=green]
                >> Bob wrote:[/color][/color]
                [color=blue][color=green]
                >> i'd recommend using an iframe, it'd work much better[/color]
                >
                > 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:1 60px; border: thin #000000; overflow-y:scroll; overflow-x:hidden;">
                >
                > Scrollable HTML/PHP code goes here
                >
                > </Div>[/color]

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

                Comment

                Working...