I need to allow my customer to upload a picture and then display the image source tag for the picture so they can copy it and paste it where they want to in the text area I am providing for them. i.e. how facebook notes works
GraficRegret 0 Junior Poster
Recommended Answers
Jump to Post@GraficRegret
need to display <img src => as text on a page
I don't know about Facebook feature. But this question is more suited for CSS than PHP but to answer your question it should look like this:
<img src="image/image.jpg" width="800px" height="600px" alt="caption or text" />
The alt …
Jump to PostIf you need to show HTML source code on a HTML page, run the HTML source through the htmlentities() function. That will convert it so the browse will show it as text rather …
Jump to PostOr you could slap some <code></code> tags around it.
That's not enough. Neither the <code> nor <pre> tags will stop the browser from actually rendering HTML strings. They are simply styling tags; essentially the equivalent of using <span> or <p> tags with monospace fonts and white-spaces preserved.
There …
All 10 Replies

LastMitch
GraficRegret 0 Junior Poster

LastMitch
Atli 182 Posting Pro
GraficRegret 0 Junior Poster
NardCake 30 Posting Pro in Training

LastMitch
Atli 182 Posting Pro
GraficRegret 0 Junior Poster
GraficRegret 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.