473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Jul 17 '05 #1
7 11789
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
Jul 17 '05 #2
Ralph Freshour <ra***@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
http://www.fuhr.org/~mfuhr/
Jul 17 '05 #3
Ralph Freshour <ra***@primemail.com> wrote in message
news:<6d********************************@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
Jul 17 '05 #4
Bob
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:<32**************************@posting.google. com>...
Ralph Freshour <ra***@primemail.com> wrote in message
news:<6d********************************@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

Jul 17 '05 #5
Bob wrote:
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:<32**************************@posting.google. com>...
Ralph Freshour <ra***@primemail.com> wrote in message
news:<6d********************************@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

Jul 17 '05 #6

"Anonymous" <an*******@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;
.....
}

nc@iname.com (Nikolai Chuvakhin) wrote in message news:<32**************************@posting.google. com>...
Ralph Freshour <ra***@primemail.com> wrote in message
news:<6d********************************@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
Jul 17 '05 #7
ChronoFish <de**@chronofish.com> wrote or quoted:
"Anonymous" <an*******@isp.com> wrote in message news:92mAb.315809$275.1067304@attbi_s53...
Bob wrote: 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>


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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: descds | last post by:
OK im prety much a newbie at PHP but it has me hooked. Im writing a comment system for one of our modules on phpnuke. Its all going very well, well should i say WAS going very well :) Ok all...
4
by: dekern | last post by:
I have been trying to set the default text value of a TextArea element for about a day now without any luck. Similar to the code used to set the Text field below I would like to use the returned...
27
by: gRizwan | last post by:
Hello all, We have a problem on a webpage. That page is sent some email data in base64 format. what we need to do is, decode the base64 data back to original shape and extract attached image...
6
by: SRafiq | last post by:
Hi I need help with a topic I have an html page and in it i have a textarea which can have a multiple of info, is there any possible way that i can out put a specific area of the textarea using...
4
by: devine | last post by:
Hi All, I am VERY new to Javascript. I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box. <!DOCTYPE html...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
7
by: u01jmg3 | last post by:
hi, i just wondered if there was a way (like there is in firefox) using javascript to allow a user using IE to drag a hyperlink (without highlighting it) and if dragged over a textarea that the text...
1
by: javediq143 | last post by:
Hi All, This is my first post in this forum. I'm developing a CMS for my latest website. This CMS is also in PhP & MySQL. I'm done with the ADD section where the Admin can INSERT new records in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.