On Tue, Feb 11, 2014 at 12:39:17PM -0800, jbull477 wrote:
> > +def form(conn):
> > +    conn.send('<form action="/submit" method="POST">')
> > +    conn.send('<p>Firstname</p><input type="text" name="firstname">')
> > +    conn.send('<p>Lastname</p><input type="text" name="lastname">')
> > +    conn.send('<input type="submit" value="Submit">')
> > +    conn.send('</form>')
> > +
> > +def submit(conn, firstname, lastname):
> > +    conn.send('<h1>Hello Mr. {firstname} '
> > +              '{lastname}.</h1>'.format(firstname = firstname,
> > +                                        lastname = lastname))
> > +
> > +def handle_connection(conn):
> > +    recieve = conn.recv(1000)
> > +    recieve = recieve.split('\n')
> > +    con = recieve[-1]
> 
> I might be missing something, but it doesn't look like 'con' has any purpose.

Isn't it used in submit?