Lab Assignment #2 (Basic CGI/Python)

In this lab, you will create a web page with a form that calls a Python script using CGI. You can use the one from homework #3 if you want to, or you can modify it, or you can create a new one. Your page must have at least two text input fields, one intended for a text input and one for a numerical input. There must also be a submit button, and when the user presses the submit button, the page should call a Python script (stored in ~/apache/cgi-bin). The script should use both inputs, and one of the inputs should be modified in some way before being returned. The example we from lecture accepts a name and an age and when the submit button is pressed, the script greets the user by the name given and tells them how old they will be next year. But your script must do something different. The script may be as complicated or as simple as you prefer (extra credit is a possibility if you do something interesting).

This assignment is due Monday, June 30th before class.