Python CGI programming with CSS

Python CGI programming with CSS, images

Page 1 of 1

1 Replies - 4410 Views - Last Post: 27 November 2007 - 06:28 PM Rate Topic: -----

#1 srilu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-November 07

Python CGI programming with CSS

Post icon  Posted 19 November 2007 - 02:48 AM

hi

At present i am working with python cgi module.

Images i want to display on my browser page.
i am unable to do that...

[code]
#!c:\Python24\python.exe
# Fig 35.16: fig35_16.py
# Program to display CGI environment variables

import os
import cgi
print "Content-type: text/html"
print

print """<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">"""

print """
<html>
<head><title>Environment Variables</title></head>
<body>
hello
<div id="banner"><img src="images/img04.jpg" alt="" width="960" height="147" /></div>
"""



print """</body></html>"""

pl help me.
Thanks
Srilu

Is This A Good Question/Topic? 0
  • +

Replies To: Python CGI programming with CSS

#2 rockstar_  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 32
  • View blog
  • Posts: 189
  • Joined: 16-October 06

Re: Python CGI programming with CSS

Posted 27 November 2007 - 06:28 PM

View Postsrilu, on 19 Nov, 2007 - 02:48 AM, said:

hi

At present i am working with python cgi module.

Images i want to display on my browser page.
i am unable to do that...

[code]
#!c:\Python24\python.exe
# Fig 35.16: fig35_16.py
# Program to display CGI environment variables

import os
import cgi
print "Content-type: text/html"
print

print """<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">"""

print """
<html>
<head><title>Environment Variables</title></head>
<body>
hello
<div id="banner"><img src="images/img04.jpg" alt="" width="960" height="147" /></div>
"""



print """</body></html>"""

pl help me.
Thanks
Srilu

Django
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1