using python with HTML and parameters

From: David Stockwell (winexpert_at_hotmail.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 12:02:42 +0000
To: python-list@python.org

Hi,

In java/jsp I can pass parameters to my python script on a webpage by doing
something like this:

http://somewhere.org/mypage.jsp?parm1=something&parm2=another

How do I do that with python?

Also would I need to import a special module so I could grab them off the
'line' (I' m not sure what you call it if its a command line, etc as its
coming via a 'get' or 'post' request via HTTP protocol.

On the webpage I am building I would like to pass parameters to python.

Thanks !

David Stockwell
-------
Tracfone: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



Relevant Pages

  • Re: using python with HTML and parameters
    ... > In java/jsp I can pass parameters to my python script on a webpage by doing ... > How do I do that with python? ... I've tried to standardise this kind of thing, ...
    (comp.lang.python)
  • Re: Databases: Getting values by column name
    ... > Your response to Skip Montaro's post demonstrates that ... Of course I looked at that webpage, but if I'm not mistaken, mx.ODBC.Windows ... Python DB-API 2.0 interface to Microsoft ADO objects ... Version 0.10 - Alpha quality code ...
    (comp.lang.python)
  • download robot
    ... Being a newbie for Python, I am trying to write a code that can act as ... a downloading robot. ... The website provides information for companies. ... The url of each downloading webpage is not unique (webpages point ...
    (comp.lang.python)
  • Re: ImportError: No module name MySQLdb
    ... > Using MySQL, Python, My-Sql-Python module and CGI create a simple ... > database that can be accesed with a webpage. ...
    (comp.lang.python)
  • Re: A problem while using urllib
    ... Johnny Lee wrote: ... > webPage = urllib2.urlopen ... > BTW, if I set the url from which the program crashed to base url, the ... What version of Python are you using, ...
    (comp.lang.python)