0

Is that HTML form only support pure text only? Can I use some JS / CSS trick to let the HTML form have image embedded?

DNB5brims
  • 29,344
  • 50
  • 131
  • 195
  • 3
    Can you clarify what you are asking? do you want to display an image in a form? inside a form element? from an external site? as text instead of a link to a file? or something else? – scunliffe Oct 11 '09 at 14:57
  • Do you want to send an image via POST? I dont understand your question – Peter Oct 11 '09 at 19:31

4 Answers4

1

What do you mean by "image embedded"?

If it's only for decoration, you can put it before or after the form and position it with CSS as needed.

If you mean, submit an image (or any kind of file) then use input type="file".

Regarding image directly in form, it may work but I'm not sure the document will validate. Better check it out.

0

Use an Image tag.

http://www.w3schools.com/htmL/html_images.asp

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
0

If you mean embedded image in base64 for example, it is not possible. You have to link a file and you cannot create a file in Javascript.

Natim
  • 17,274
  • 23
  • 92
  • 150
0

This Html Code Works Like Img But Can Show Any File Your Browser Supports. I Tested This iframe Myself.

<iframe src="(Your Base 64 Code)"></iframe>

This Site is Not My Creation. Use This Link To Convert Any File To Base64