Python

Moderators: None (Apply to moderate this forum)
Number of threads: 473
Number of posts: 1165

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
question on Python CGI Posted by andohung on 27 Feb 2003 at 9:13 AM
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)

anyone help pls???
Report
Re: question on Python CGI Posted by infidel on 27 Feb 2003 at 1:02 PM
: 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

Report
also... Posted by infidel on 27 Feb 2003 at 1:12 PM
Check the messages further down on this board. DJ and I were working on an event calendar cgi script a while back. Haven't heard from him in a while, but our progress is here for you to see.


infidel




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.