6 messages in org.python.python-listhow to display an HTML <img scr> tag ...
FromSent OnAttachments
JayFeb 11, 2003 9:42 am 
Peter HansenFeb 11, 2003 9:51 am 
JayFeb 12, 2003 4:23 am 
Peter HansenFeb 12, 2003 5:58 am 
Jose GalvezFeb 12, 2003 8:56 am 
Peter HansenFeb 12, 2003 9:12 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:how to display an HTML <img scr> tag using Python...Actions...
From:Peter Hansen (pet@engcorp.com)
Date:Feb 11, 2003 9:51:33 am
List:org.python.python-list

Jay wrote:

Sorry about this newbie question...but

how do you display an HTML <img src="name"> tag using only Python (for CGI), I'm sure that you need to use some library, but can anyone tell me which one?

Also while in the same subject, can anyone also tell me how you can do a <a href="URL"></a> HTML hyperlink using just Python.

I'm trying to mix using both Python and HTML.

If you really mean you are using CGI, and I almost have to assume you actually have something working already that can generate HTML (or you would have been asking a more general question), then you would just generate those HTML tags using the same "print" statements you are already using to generate the other output.

Maybe you're missing something in the question... do you have a program already working? Maybe posting a small snippet from it, or an example of what you've already tried to get this working, would be of assistance.

-Peter