#1
  1. No Profile Picture
    inexperienced and useless
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Stevenage, uk
    Posts
    10
    Rep Power
    0

    Hidden form variables


    How do I pass hidden form variables in Python. I have a cgi that performs a search on a database. I want to be able to perform subsequent searches on the database after the initial one, however because of the database structure I am unable to save a hitlist then return to it, so I need to pass the previous search details as a hidden variable to the cgi, to get the effect of subsequent searches, does anyone know how I would go about doing that?

    tHaNk YoU.

    NiCkNaMe
  2. #2
  3. chown python:users\ /world
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Texas Tech
    Posts
    95
    Rep Power
    15
    You could put a hidden form field in
    <input type="hidden" name="whatever" value="variablevalue">

    Then you can access it in Python with the variable name being whatever.

    Does that make sense?
    Hartmann
    badice.com

IMN logo majestic logo threadwatch logo seochat tools logo