#NEWLINE# def post_data( request ) : #NEWLINE# #INDENT# 'This view demonstrates how to retrieve POST data.' #NEWLINE# r = HttpResponse ( ) #NEWLINE# if request . POST : #NEWLINE# #INDENT# r . write ( '<p>POST data found! Here it is:</p>' ) #NEWLINE# r . write ( ( '<ul>%s</ul>' % '' . join ( [ ( '<li><strong>%s:</strong> %r</li>' % ( escape ( v ) , escape ( v ) ) ) for ( k , v ) in request . POST . items ( ) ] ) ) ) #NEWLINE# #UNINDENT# r . write ( '<form action="" method="post">' ) #NEWLINE# r . write ( '<p>First name: <input type="text" name="first_name"></p>' ) #NEWLINE# r . write ( '<p>Last name: <input type="text" name="last_name"></p>' ) #NEWLINE# r . write ( '<p><input type="submit" value="Submit"></p>' ) #NEWLINE# r . write ( '</form>' ) #NEWLINE# return r