Passing values to another script using CGI

Mike Wimpe mikewimpe at yahoo.com
Sat Mar 12 06:46:53 EST 2005


Without creating a form, how do i pass a value to another script?

I would like to pass:

group = "Oranges"

to another script or at least just 'group' and initialize it in the
first script.

script1:
'''
<html>
<form method=POST action=script2.py>
<input type=submit yada yada>
group = "Oranges"
'''

script2:

print ''' Oh you like '''+group+'''.'''

thanks,

Mike




More information about the Python-list mailing list