I have to make a webpage using mod_python, i have to load an image on the webpage this is the code that i have made
import cgi
import nltk
import time
def fill():
s = """\
<html><body bgcolor="777777" >
<form method="get" action="./show">
<p>Type a word: <input type="text" name="word">
<input type="submit" value="Submit"</p>
</form>
<img width="640" height="480" src="simplify.jpg" />
</table>
</body></html>
"""
return s
It has to load image but its not doing so.. what is the problem?? I couldn’t get any good tutorials, if any one could suggest me a link it will be very helpful..
I guess you use apache2 mod python. There must be a function called def index which receives at least one parameter which is the request. The result of this function will be passed to the client.
So in your case something like: