Newbie Question on re-direct in Python

Daniel Lupton rosest34 at optusnet.com.au
Fri Oct 11 22:31:15 EDT 2002


Hi,

I am trying to get one of my python cgi scripts to load another script to
the browser when a test fails but I have not idea how to.
Here is some code:
    if userNotExist == "true":
         makeNewUserFile(userName, password)
    else:
         login.cgi?newUser=Yes
What I am trying to do is that if the user name already exists in the
database that the script uses it returns to the new user page which is
contained in the login script. Does anyone have any ideas how I can get the
login script to be run.

Thank you,
Daniel





More information about the Python-list mailing list