473,378 Members | 1,462 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,378 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 11785
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.