: im trying to write a messageboard using python
: i have some difficulties with linking the to the messages
:
: say there is a link on the message title, how do I allocate the message content with that link???
:
: I saw other people use address like this:
: http://www.xxx.com/msgboards/msg.cgi?board=news&view=4i8hheyj
:
: where i guess the "4i8hheyj" is the message id for the script to locate the message content
:
: how do i use Python to manipulate the bunch of information after the address .../msg.cgi? (?board=news&view=4i8hheyj)
Try writing a script like this:
#!/usr/bin/python
import cgi
form = cgi.FieldStorage()
print "Content-type: text/html\n"
cgi.print_form(form)
It should give you some hints. Also check the documentation on the cgi module.
infidel