[Python-au] absolute newbie question

Sam Schmidt samster@primus.com.au
Tue, 11 Mar 2003 20:11:48 +1100

Hi There,

I have an absolute newbie question.

I have a python script in the cgi-bin dir of the webserver - executable all
works and etc... it is #/usr/bin/python print "hello!" ..

if I access it from http://whatever/cgi-bin/hello.py it works.. it displays

I was now wondering how do I access it throuhg a .html page ? or sohuld it
be .pyhtml page ? I have tried both with no success.

The .html/.pyhtml code is:


Testing Python

<FORM METHOD="POST" ACTION="/cgi-bin/python.py"


It displays "Testing Python" and tahts about it.

Could anyone help me out, if so that would be great.