[mod_python] POST/GET using PSP

Lukasz Szybalski szybalski at gmail.com
Tue Jul 18 15:54:04 EDT 2006


Hello,
I am trying to display folders using PSP
<html>
<%
import os
%>
<%=os.getcwd()%>
<%
for i in os.listdir("/"):
%><a href=""><%=i
%></a>
<br>

</html>

Now i would like it to change folder when clicked on one.
so let say we want to go to /etc. The easies way i see it is to use
POST. Add variable /etc to address on top and then read it in when
page is refreshed.
How do i append "/etc" (http://localhost/index.psp?/etc ???) to the
address and how do i read in the variable "/etc" from address bar
using PSP

Thank you
Lucas


More information about the Mod_python mailing list