Yes I have a debian server runing apache. Can you give me a link ? Because i
do not how to make the search and list the files found to download

On 7/4/07, Alan Gauld <[EMAIL PROTECTED]> wrote:

"Alejandro Decchi" <[EMAIL PROTECTED]> wrote

> Ok  but i have this form:
> <body>
> <form id="form1" name="form1" method="post"
> action="/cgi-bin/search.py">

OK, You didn't make it clear that you meant a CGI program,
I was assuming you meant a GUI program. That adds a whole
heap of extra complexity. A lot depends on what web
mechanism/framework you are using. If we assume the
standard cgi module then you need to get the submited
data out of the request with the field_storage dictionary.
Then you need to call your search function and finally
format the results as HTML. Either offer to downoad a
particular file and have a second request start the download
or just send the file back, but that could be an unexpected result.
I'd offer the file as a link and let the user click on it to fetch it
from the server.

But web programming is a whole different ball game.
You should look up some simple examples first.

Alan G.


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to