#!/Library/Frameworks/Python.framework/Versions/Current/bin/python # L-29 MCS 275 Fri 19 Mar 2010 : scripts_sort.py # Connects to the database server scripts_servdb.py # displays number of records and prompts for sort order. # upon submit calls the script_sortall.py. from socket import * hostname = 'localhost' # on same host number = 11267 # same port number buffer = 80 # size of the buffer def PrintHeader(title): """ writes title and header of page """ print """Content-type: text/html